I fall down too much fast, and I need slow fall for dropper game anyone can help?.
I can’t understand which numbers or way I should do.
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 bv = Instance.new("BodyForce")
bv.Name = "NoGrav"
bv.Force = Vector3.new(0,-20,0)* -workspace.Gravity/10
bv.Parent = HumanoidRootPart
character.Animate.fall.FallAnim.AnimationId = "rbxassetid://9994619922"
end
end
end
parent.Touched:connect(onTouch)
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) * .5,0)
VectorForce.Parent = HumanoidRootPart
character.Animate.fall.FallAnim.AnimationId = "rbxassetid://9994619922"
end
end
end
parent.Touched:connect(onTouch)
Body Force is deprecated. You should use Vector Force. The gravity can also be changed in workspace through the explorer window. If you want to change it for a specific player, you can change it locally, but must ensure the server validates it in order to prevent exploits.