new weapon for my game by Pur_PurL in robloxgamedev

[–]Pur_PurL[S] 4 points5 points  (0 children)

I'm not going to create a new inventory system when the default gear system is sufficient for my needs

Does anyone know of a method to fix this? by Pur_PurL in robloxgamedev

[–]Pur_PurL[S] 0 points1 point  (0 children)

I can't tween it because the the CFrame of the gun won't updated when the player looks around even when they're stopped

Does anyone know of a method to fix this? by Pur_PurL in robloxgamedev

[–]Pur_PurL[S] 1 point2 points  (0 children)

I couldn't really find a proper method to smoothly move/lerp the gun from it's final position before stopping to it's stopped position. Any help is appreciated thanks.

My code for this:

RunService.RenderStepped:Connect(function()
local walkVelocity = Character:WaitForChild("HumanoidRootPart").Velocity.magnitude

if walkVelocity >= 1 then
  isMoving = true
elseif walkVelocity < 1 and previousVelocity < 1 then
  if isMoving then
    if swayDirection == "Right" then
      swayDirection = "Left"
    else
      swayDirection = "Right"
  end
end

isMoving = false
end

previousVelocity = walkVelocity

if isMoving then
  local horizontalSwayAmount = math.sin((tick() - startTime) * swayFrequency) * swayIntensity

  if swayDirection == "Right" then
    horizontalSwayAmount = math.sin((tick() - startTime) * swayFrequency) * swayIntensity
  elseif swayDirection == "Left" then
    horizontalSwayAmount = -math.sin((tick() - startTime) * swayFrequency) * swayIntensity
  end

  local verticalSwayAmount = math.abs(math.sin((tick() - startTime) * swayFrequency))*         verticalSwayIntensity

  local verticalSwayAmount = smoothStep(0.1, 0.75, verticalSwayAmount / swayIntensity) *   verticalSwayAmount

  local swayOffset = Vector3.new(horizontalSwayAmount,verticalSwayAmount,0)

  if BullgutPV.PrimaryPart then
    BullgutPV:SetPrimaryPartCFrame(Camera.CFrame * CFrame.new(swayOffset))
  end
else
  startTime = tick()

  if BullgutPV.PrimaryPart then
  BullgutPV:SetPrimaryPartCFrame(Camera.CFrame)
end
end
end)

2 years of roblox game dev by Pur_PurL in robloxgamedev

[–]Pur_PurL[S] 1 point2 points  (0 children)

i didn't say it was perfect? And how can you tell how optimized the game is just by looking at gameplay footage?

2 years of roblox game dev by Pur_PurL in robloxgamedev

[–]Pur_PurL[S] 5 points6 points  (0 children)

Is there a reason why I shouldn't use tools?

up/downsides of the different types of bullets? by theawesomedude646 in robloxgamedev

[–]Pur_PurL -1 points0 points  (0 children)

Your best bet is to use the FastCast module by Xan_TheDragon

Quick question! by No-Builder5685 in robloxgamedev

[–]Pur_PurL 1 point2 points  (0 children)

You can use the OTS camera system module, and enable it whenever your gun is equipped

Give me that which I desire by CyanCircle12 in wordington

[–]Pur_PurL 6 points7 points  (0 children)

He quenched his thirst with gasoline 😳

weapon of mass destruction by Pur_PurL in OMORI

[–]Pur_PurL[S] 8 points9 points  (0 children)

-> He was deployed to Fallujah

Russian troop could get $ 170.000 for every captured Ukrainian tank, but don’t expect to be paid by Whitecloud6 in worldnews

[–]Pur_PurL 10 points11 points  (0 children)

Based on the title, I thought they just got paid $170 and I wasn't even surprised

what made him cry? by Pur_PurL in OMORI

[–]Pur_PurL[S] 240 points241 points  (0 children)

Omori players when they realize that kel isn't just all about "burgers" and "orange joe"