Advertisement
memecreater

test

Oct 9th, 2022
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. local PlayerName = (WoodStealer)
  2. local StealType = "TreeClass"
  3. --[[ Types List:
  4. Axes = "Tool"
  5. Items = "Loose Item"
  6. Gifts = "Gift"
  7. Planks = "TreeClass"
  8. ]]
  9.  
  10. local Times = 0
  11. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  12. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == PlayerName then
  13. if StealType ~= "TreeClass" then
  14. if v:FindFirstChild("Type") and tostring(v.Type.Value) == StealType then
  15. if v.PrimaryPart then
  16. v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
  17. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v.PrimaryPart)
  18. v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
  19. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.PrimaryPart)
  20. v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
  21. Times = Times + 1
  22. if Times == 10 then
  23. Times = 0
  24. wait(0.1)
  25. end
  26. end
  27. end
  28. else
  29. if v:FindFirstChild("TreeClass") then
  30. if v.WoodSection then
  31. v.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
  32. game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v.WoodSection)
  33. v.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
  34. game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.WoodSection)
  35. v.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
  36. Times = Times + 1
  37. if Times == 10 then
  38. Times = 0
  39. wait(0.1)
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement