Advertisement
BobMe

YeetS

Aug 22nd, 2020 (edited)
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. wait(3)
  2. local remote = nil
  3. local player = owner
  4.  
  5. if player:FindFirstChild("Yet") == nil then
  6. remote = Instance.new("RemoteEvent",player)
  7. remote.Name = "Yet"
  8. else
  9. remote = player:FindFirstChild("Yet")
  10. end
  11.  
  12. remote.OnServerEvent:Connect(function(plr,mode,part,data)
  13. if mode == "anchor" then
  14. part.Anchored = true
  15. elseif mode == "unanchor" then
  16. --game:GetService("RunService").Heartbeat:Wait(1/32)
  17. part.Velocity = data
  18. wait()
  19. part.Anchored = false
  20. part:SetNetworkOwner(plr)
  21. wait()
  22. part.Anchored = true
  23. wait()
  24. part.Anchored = false
  25. elseif mode == "update" then
  26. part.CFrame = data
  27. elseif mode == "spawnpart" then
  28. local b = Instance.new("Part",workspace)
  29. b.CFrame = plr.Character.Head.CFrame * CFrame.new(0,0,-5)
  30. b.Material = Enum.Material.Brick
  31. b.Color = Color3.fromRGB(163,163,163)
  32. b.Size = Vector3.new(4,4,4)
  33. end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement