How to slowly long fall for dropper game

I’ve been trying to find a good script or something to fix my bugs in my game about the gravity inside the dropper, because it’s going too much fast when I fall down, and sometimes it changes the gravity to something it shouldn’t.

script.Parent.Transparency = 1
parent = script.Parent


function onTouch(hit)
	--parent.Touched:connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if humanoid then
		local character = hit.Parent
		local HumanoidRootPart = character.HumanoidRootPart
		if not HumanoidRootPart:FindFirstChild("NoGrav") then

			local totalMass= 0
			for _, instance in pairs(character:GetDescendants()) do
				if instance:IsA("BasePart") then

					print(instance, ' ', instance:GetMass())
					totalMass += instance:GetMass()
				end
			end

			local VectorForce = Instance.new("VectorForce")
			local ForceAttachment = Instance.new("Attachment")
			VectorForce.Attachment0 = ForceAttachment
			ForceAttachment.Parent = HumanoidRootPart
			VectorForce.Name = "NoGrav"
			VectorForce.Force = Vector3.new(0, (totalMass * workspace.Gravity) - .1,5,0)
			VectorForce.Parent = HumanoidRootPart
			character.Animate.fall.FallAnim.AnimationId = "rbxassetid://9994619922"
		end
	end
end
parent.Touched:connect(onTouch)

– And don’t just say put lower numbers please its not helping –

1 Like

You can just change the gravity level for the game in game settings, unless you want it to change gravity when your actually in the dropper?

yea only when you in the dropper, and slowly fall till the dropper over

script.Parent.Transparency = 1
parent = script.Parent


function onTouch(hit)
	--parent.Touched:connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if humanoid then
	  workspace.Gravity /= --[[number]] 2
   end
end
parent.Touched:connect(onTouch)

This is the main script for when the player touches to start line or whatever it is. Just add another part at the finish line which changes the gravity back to 192.6 again with the same script.

If the workspace gravity changes will it just do it for everyone?

1 Like

Im going to check it right now

Yes, it will if it’s a normal script.

@MegaPartyXD , I think it’s time to use local scripts.

Instead of changing the gravity in a script, just insert a new local script in starter character scripts and paste your code there!

1 Like

I think that would work, never actually got the chance to use a local script. lol

I think its work, I hope there will be not any bug, the last script did bug sometimes when I walk in or jump to the part

1 Like

Im little new at this things of gravity and somehow its not work, how I can return the gravity back to normal?

At the finish line, insert a new part with a different name. Change the part name variable to the new part you’ve added, and change workspace.Gravity/= number to 196.2 (workspace.Gravity = 196.2).

I think i did it and its didn’t work

parent = workspace.EndOfAllDropper


function onTouch(hit)
	--parent.Touched:connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if humanoid then
		workspace.Gravity = 196.2
		end
	if hit:LoadCharacter() then
		workspace.Gravity = 196.2
	end
end
parent.Touched:connect(onTouch)

local script in startercharacterscripts

Do you want them to be capped to a maximum speed? Or just accelerate slower with no limit?

I want speed that stay till die or finish
I doing dropper game I want speed that enough for the dropper

workspace.Gravity = 196.2
hit.Parent:SetPrimaryPartCFrame(spawnpoint.CFrame) -- spawnpoint

No need to use load character, cause it only works on the server…

its if you die inside the dropper but fine I can do teleport without die

1 Like
part = workspace.EndOfAllDropper


function onTouch(hit)
	--parent.Touched:connect(function(hit)
	local humanoid = hit.Parent:FindFirstChild("Humanoid")
	if humanoid then
		workspace.Gravity = 196.2
		hit.Parent:SetPrimaryPartCFrame(part.CFrame) -- spawnpoint
		end
	end

part.Touched:connect(onTouch)

something like that?

1 Like

Yes, this would work perfectly.

ok let me try if there is any bug or something I will reply later

nvm you can help me that if I die its reset too?

1 Like