ZHFK

Wonder woman

Jul 17th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. -- credit: https://v3rmillion.net/showthread.php?tid=1015015
  2. local Rat = workspace.InteractiveWorldElements.SpawnZones.SpawnZones_Rats
  3. local killRatToggle = true
  4. function intRatQuest()
  5. local v1 = "ArmoryAmazon01NPCInteractible"
  6. local v2 = game:GetService("Workspace").NPCs.QuestNPCs.Artemis.InteractionZone
  7. local rem = game:GetService("ReplicatedStorage").RemoteEvents.OnPlayerInteraction
  8. rem:FireServer(v1, v2); wait(0.1)
  9. local v1 = "CorruptedRatsQuestPrompt"
  10. local rem = game:GetService("ReplicatedStorage").RemoteEvents.OnAcceptedPromptRemoteEvent
  11. rem:FireServer(v1); wait(0.1)
  12. local v1 = "Corrupted Rats"
  13. local rem = game:GetService("ReplicatedStorage").RemoteFunctions.UnlockQuestRemoteFunction
  14. rem:InvokeServer(v1); wait(0.1)
  15. local v1 = "Corrupted Rats"
  16. local rem = game:GetService("ReplicatedStorage").RemoteFunctions.HideQuestNewIconRemoteFunction
  17. rem:InvokeServer(v1); wait(0.1)
  18. local v1 = "AmazonWarrior01NPCInteractible"
  19. local v2 = game:GetService("Workspace").NPCs.QuestNPCs.Aella.InteractionZone
  20. local rem = game:GetService("ReplicatedStorage").RemoteEvents.OnPlayerInteraction
  21. rem:FireServer(v1, v2); wait(0.1)
  22. local v1 = "AmazonWarrior01NPCInteractible"
  23. local rem = game:GetService("ReplicatedStorage").RemoteEvents.OnEndedDialogRemoteEvent
  24. rem:FireServer(v1); wait(0.1)
  25. end
  26. function killDeRats()
  27. pcall(function()
  28. if not killRatToggle then return end
  29. intRatQuest()
  30. for i,v in pairs(Rat:GetDescendants()) do
  31. if v and v.Name == "RatMesh" then
  32. if firetouchinterest then
  33. firetouchinterest(game:GetService("Players").LocalPlayer.Character.PrimaryPart, v, 0); wait()
  34. firetouchinterest(game:GetService("Players").LocalPlayer.Character.PrimaryPart, v, 1)
  35. else
  36. game:GetService("Players").LocalPlayer.Character.PrimaryPart.CFrame = v.CFrame
  37. end
  38. local v1 = "Corrupted Rats"
  39. local rem = game:GetService("ReplicatedStorage").RemoteFunctions.CollectQuestRewardRemoteFunction
  40. rem:InvokeServer(v1)
  41. wait(1)
  42. end
  43. end
  44. end)
  45. end
  46. killDeRats()
  47. Rat.DescendantAdded:Connect(killDeRats)
Add Comment
Please, Sign In to add comment