Advertisement
Guest User

dbor auto trainer

a guest
Mar 24th, 2019
1,364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local narrator = player.PlayerGui["Training Mode"].Narrator
  3.  
  4. for _,v in pairs((getnilinstances and getnilinstances()) or (Synapse and Synapse:GetNilInstances()) or {}) do
  5. if v.Name == "Code" then
  6. _G.Code = v
  7. end
  8. end
  9. narrator.Parent.Score.Changed:connect(function(prop)
  10. wait(0.01)
  11. if prop == "Text" then
  12. if narrator.Text ~= "FAILED" then
  13. local key = narrator.Text
  14. key = string.lower(key)
  15. local Code = _G.Code
  16. game.ReplicatedStorage.Events.TrainingMode:InvokeServer(key, nil, Code.Value)
  17. end
  18. end
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement