kleber1234

vvvvvdasdasda

Sep 14th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local PlayerName = "MichaelJacksonOffice"
  2.  
  3. local ItsCFrame
  4. local Remote = game.ReplicatedStorage.PlaceStructure.ClientPlacedStructure
  5. for i,v in pairs(game.Workspace.PlayerModels:GetChildren()) do
  6. if v:FindFirstChild("Owner") and tostring(v.Owner.Value) == PlayerName then
  7. if v:FindFirstChild("Type") and v.Type.Value == "Blueprint" or "Structure" then
  8. if v:FindFirstChild("MainCFrame") then
  9. ItsCFrame = v.MainCFrame.Value
  10. else
  11. ItsCFrame = v.PrimaryPart.CFrame
  12. end
  13. if v ~= nil then
  14. Remote:FireServer(v.Name, ItsCFrame, game.Players.LocalPlayer, "Wipe", v, true)
  15. end
  16. end
  17. end
  18. end
Add Comment
Please, Sign In to add comment