Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local PlayerName = (WoodStealer)
- local StealType = "TreeClass"
- --[[ Types List:
- Axes = "Tool"
- Items = "Loose Item"
- Gifts = "Gift"
- Planks = "TreeClass"
- ]]
- local Times = 0
- for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
- if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == PlayerName then
- if StealType ~= "TreeClass" then
- if v:FindFirstChild("Type") and tostring(v.Type.Value) == StealType then
- if v.PrimaryPart then
- v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v.PrimaryPart)
- v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.PrimaryPart)
- v.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- Times = Times + 1
- if Times == 10 then
- Times = 0
- wait(0.1)
- end
- end
- end
- else
- if v:FindFirstChild("TreeClass") then
- if v.WoodSection then
- v.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(v.WoodSection)
- v.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(v.WoodSection)
- v.WoodSection.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(0,10,0)
- Times = Times + 1
- if Times == 10 then
- Times = 0
- wait(0.1)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement