Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr1 = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- print(plr1)
- for _, Log in pairs(workspace.LogModels:GetChildren()) do
- if Log.Name:sub(1, 6) == "Loose_" and Log:findFirstChild("Owner") then
- if Log.Owner.Value == game.Players.LocalPlayer then
- for i,v in pairs(Log:GetChildren()) do
- if v.Name=="WoodSection" then
- spawn(function()
- for i=1,10 do
- wait()
- v.CFrame=CFrame.new(Vector3.new(plr1))*CFrame.Angles(math.rad(90),0,0)
- end
- end)
- end
- end
- spawn(function()
- for i=1,20 do
- wait()
- game.ReplicatedStorage.Interaction.ClientIsDragging:FireServer(Log.WoodSection)
- game.ReplicatedStorage.Interaction.ClientRequestOwnership:FireServer(Log.WoodSection)
- end
- end)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement