Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Character = "rehan3767"
- local lev = 236 / 1.2
- local grav = .7
- function dataGetMass(number)
- local totalMass = 0
- local p = workspace[Character]:GetChildren()
- for i = 1, #p do
- if p[i]:IsA("Part") == true then
- totalMass = totalMass + p[i]:GetMass()
- elseif p[i]:IsA("Hat") == true then
- totalMass = totalMass + p[i].Handle:GetMass()
- end
- end
- return totalMass
- end
- local bf = Instance.new("BodyForce")
- bf.Parent = game.Workspace[Character]Head
- bf.force = Vector3.new(0, dataGetMass(number) * lev * grav, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement