Advertisement
yonidrori

Untitled

Oct 6th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local function Locate(Locate,x)
  2. 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
  3. if not x:FindFirstChild("BF") then
  4. local BF = Instance.new("BodyForce",x)
  5. BF.force = Vector3.new(0,x:GetMass()*196.175,0)
  6. BF.Name = "BF"
  7. end
  8. if not game:GetService("Players"):GetPlayerFromCharacter(x.Parent) then
  9. x:BreakJoints()
  10. end
  11. x.Anchored = false
  12. end
  13. for i,v in pairs(x:GetChildren()) do
  14. coroutine.resume(coroutine.create(function() Locate(Locate,v) end))
  15. end
  16. end
  17. while wait(0.5) do
  18. coroutine.resume(coroutine.create(function() Locate(Locate,game:GetService("Workspace")) end))
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement