Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. script.Parent = workspace
  2.  
  3. local plr = game:GetService'Players'.LocalPlayer
  4. local keys = require(game.ReplicatedStorage.Assets.Modules.KeyHandler)();
  5. local dialogue = keys.getKey("SendDialogue", "apricot")
  6. local wipes = 0
  7.  
  8. plr.CharacterAdded:connect(function(char)
  9. repeat wait() until char:FindFirstChild'Immortal' and char:FindFirstChildOfClass'ForceField' and char:FindFirstChildOfClass'Shirt'
  10.  
  11. if (char.HumanoidRootPart.Position - Vector3.new(-7155, 275, 2790)).magnitude <= 1000 then
  12. for _, a in pairs(char:children()) do
  13. if a.Name == "Immortal" or a:IsA'ForceField' then
  14. a:Destroy()
  15. end
  16. end
  17.  
  18. wipes = wipes + 1
  19.  
  20. char:WaitForChild'HumanoidRootPart'.CFrame = workspace.NPCs.Ferryman.Head.CFrame
  21. wait(.5)
  22. fireclickdetector(workspace.NPCs.Ferryman.ClickDetector)
  23. wait(.5)
  24. dialogue:FireServer({["choice"] = "My son."})
  25. end
  26. end)
  27.  
  28. spawn(function()
  29. local vu = game:GetService("VirtualUser")
  30. game:GetService("Players").LocalPlayer.Idled:connect(function()
  31. vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  32. wait(1)
  33. vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
  34. end)
  35.  
  36. for _, a in pairs(game:GetService("Players"):players()) do
  37. a.Chatted:connect(function(m)
  38. if m:lower() == "wipes" then
  39. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Wipes: " .. tostring(wipes) .. " Grips: " .. tostring(wipes*3), "All")
  40. end
  41. end)
  42. end
  43.  
  44. game:GetService("Players").PlayerAdded:connect(function(a)
  45. a.Chatted:connect(function(m)
  46. if m:lower() == "wipes" then
  47. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Wipes: " .. tostring(wipes) .. " Grips: " .. tostring(wipes*3), "All")
  48. end
  49. end)
  50. end)
  51. end)
  52.  
  53. while wait() do
  54. local char = plr.Character
  55.  
  56. if char ~= nil and char:FindFirstChild'Immortal' and char:FindFirstChildOfClass'ForceField' and char:FindFirstChildOfClass'Shirt' and (char.HumanoidRootPart.Position - Vector3.new(-7155, 275, 2790)).magnitude >= 1000 then
  57. plr.Character.Humanoid:MoveTo(Vector3.new(1556, 248, 1308))
  58. end
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement