Advertisement
SirTZN

Untitled

Mar 29th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. local plr1 = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  2. print(plr1)
  3. for _, Log in pairs(workspace.LogModels:GetChildren()) do
  4. if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
  5. if Log.Owner.Value == game.Players.LocalPlayer then
  6. for i,v in pairs(Log:GetChildren()) do
  7. if v.Name=="WoodSection" then
  8. spawn(function()
  9. for i=1,10 do
  10. wait()
  11. v.CFrame=CFrame.new(Vector3.new(plr1))*CFrame.Angles(math.rad(90),0,0)
  12. end
  13. end)
  14. end
  15. end
  16. spawn(function()
  17. for i=1,20 do
  18. wait()
  19. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log.WoodSection)
  20. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Log.WoodSection)
  21. end
  22. end)
  23. end
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement