Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function Locate(Locate,x)
- if x:IsA("Part") or x:IsA("TrussPart") or x:IsA("Seat") or x:IsA("VehicleSeat") or x:IsA("Flag") or x:IsA("FlagStand") or x:IsA("SpawnLocation") or x:IsA("Wedge") then
- if not x:FindFirstChild("BF") then
- local BF = Instance.new("BodyForce",x)
- BF.force = Vector3.new(0,x:GetMass()*196.175,0)
- BF.Name = "BF"
- end
- if not game:GetService("Players"):GetPlayerFromCharacter(x.Parent) then
- x:BreakJoints()
- end
- x.Anchored = false
- end
- for i,v in pairs(x:GetChildren()) do
- coroutine.resume(coroutine.create(function() Locate(Locate,v) end))
- end
- end
- while wait(0.5) do
- coroutine.resume(coroutine.create(function() Locate(Locate,game:GetService("Workspace")) end))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement