DerpyFox

ersenel

Sep 20th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. local Player=game:GetService'Players'.LocalPlayer
  2. local RepS=game:GetService'ReplicatedStorage'
  3. local Event=RepS:WaitForChild'Remotes':WaitForChild'Player':WaitForChild'NPCChat'
  4. local Quest=Player:WaitForChild'PlayerFolder':WaitForChild'Quest'
  5. local Slader=workspace:WaitForChild'NPCS':WaitForChild'Slader'
  6. local RS=game:GetService'RunService'
  7. getgenv().Enabled=true
  8. while getgenv().Enabled do
  9. RS.RenderStepped:Wait()
  10. local Part=Slader:FindFirstChild'Part'
  11. if Part then
  12. local CD=Part:FindFirstChildOfClass'ClickDetector'
  13. if CD and Quest.Value~='No Quest' then
  14. fireclickdetector(CD)
  15. end
  16. end
  17. if Quest.Value=='No Quest' then
  18. Event.FireServer(Event,'Deliver this message to Slader.',true)
  19. end
  20. end
Add Comment
Please, Sign In to add comment