LeviTheOtaku

Whatever Floats Your Boat

Mar 2nd, 2019
571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. spawn(function()
  2. while true do
  3. wait(1)
  4. local chest = workspace.Chests:getChildren()
  5. for i=1,#chest do
  6. if chest[i]:findFirstChild("ChestBottom") then
  7. if chest[i].ChestBottom:findFirstChild("MetalOutline") then
  8. if chest[i].ChestBottom.MetalOutline:findFirstChild("Trigger") then
  9. if chest[i].ChestBottom.MetalOutline.Trigger:findFirstChild("TriggerRemoteEvent") then
  10. game.Players.LocalPlayer.Character:MoveTo(chest[i].ChestBottom.MetalOutline.Position)
  11. wait()
  12. chest[i].ChestBottom.MetalOutline.Trigger.TriggerRemoteEvent:FireServer()
  13. end
  14. end
  15. end
  16. end
  17. end
  18. end
  19. end)
  20.  
  21. spawn(function()
  22. game.Players.LocalPlayer.Character.ChildAdded:connect(function(sword)
  23. if sword.Name == "Sword" then
  24. while true do
  25. wait()
  26. local cframe = sword.Handle.CFrame
  27. local size = sword.Handle.Size
  28. local player = workspace:GetChildren()
  29. for i=1,#player do
  30. if player[i]:findFirstChild("Head") then
  31. if player[i].Name ~= game.Players.LocalPlayer.Name then
  32. if player[i].HumanoidRootPart:findFirstChild("RootRigAttachment") then
  33. player[i].HumanoidRootPart.RootRigAttachment:remove()
  34. end
  35. player[i].HumanoidRootPart.Transparency = 1
  36. player[i].HumanoidRootPart.CanCollide = false
  37. player[i].HumanoidRootPart.Anchored = true
  38. player[i].HumanoidRootPart.Size = size
  39. player[i].HumanoidRootPart.CFrame = cframe
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end)
  46. end)
Add Comment
Please, Sign In to add comment