Advertisement
plytalent

test 1

Jun 29th, 2019
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. local players = game:GetService("Players")
  2. local player = players:FindFirstChild("plytalent")
  3. local remote = Instance.new("RemoteEvent",player.PlayerGui)
  4. remote.Name = "REEEEEEEEEEEEEEMOTE"
  5. remote.OnServerEvent:Connect(function(playerf,stage,parent)
  6. if playerf then
  7. if stage then
  8. if stage == "active" then
  9. if parent then
  10. player.Character.Parent = parent
  11. if parent == player.Character.Parent and player.Character.Parent == workspace then
  12. player.Character.Parent = workspace.Camera
  13. elseif player.Character.Parent == parent and player.Character.Parent ~= workspace then
  14. player.Character.Parent = workspace
  15. end
  16. end
  17. elseif stage == "deactive" then
  18. player.Character.Parent = workspace
  19. end
  20. end
  21. end
  22. end)
  23. NLS([==[local plr = game:GetService("Players").LocalPlayer
  24. local remote = plr.PlayerGui:FindFirstChild("REEEEEEEEEEEEEEMOTE")
  25. local run = game:GetService("RunService")
  26. local char = plr.Character
  27. local mouse = plr:GetMouse()
  28. run.Heartbeat:Connect(function()
  29. remote:FireServer(stage,char.Parent)
  30. end)
  31. mouse.KeyDown:Connect(function(gay)
  32. if gay == "e" and stage == "deactive" then
  33. stage = "active"
  34. elseif gay == "e" and stage =="active" then
  35. stage = "deactive"
  36. end
  37. end)]==],owner.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement