Advertisement
MatLumber2

Lumber Tycoon 2

Jun 1st, 2020
1,498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. for a,b in pairs(workspace.Properties:GetChildren()) do
  2. if b:FindFirstChild("Owner") and b:FindFirstChild("OriginSquare") and b.Owner.Value == nil then
  3. game.ReplicatedStorage.PropertyPurchasing.ClientPurchasedProperty:FireServer(b, b.OriginSquare.OriginCFrame.Value.p + Vector3.new(0,3,0))
  4. wait(0.5)
  5. Instance.new('RemoteEvent', game:service'ReplicatedStorage'.Interaction).Name = "Ban"
  6. for i,v in pairs(game.Workspace.Properties:GetChildren()) do
  7. if v.Owner.Value == game.Players.LocalPlayer then
  8. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  9. wait(0.1)
  10. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = v.OriginSquare.CFrame + Vector3.new(0,10,0)
  11. game.Players.LocalPlayer.Character.Humanoid.Jump = true
  12. wait(0.1)
  13. end
  14. end
  15.  
  16. -- game.Players.LocalPlayer.Character:MoveTo(b.OriginSquare.Position)
  17. break
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement