Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. -------------------------------------------------------------------------------
  2. -- Module (Correct)
  3.  qq
  4. local Phase1 = {}
  5.  
  6. function Phase1:Run()
  7.     game:GetService("RunService").Heartbeat:connect(function()
  8.         Phase1.ServerKey = math.random(1, 500)
  9.     end)
  10. end
  11.  
  12. return Phase1
  13. -------------------------------------------------------------------------------
  14.  
  15. --Fixed
  16.  
  17. -- Script // Where I'm trying to call ServerKey from
  18. Key = require(game:GetService("ServerScriptService"):WaitForChild("ServerFolder"):WaitForChild("AssignKey"))
  19.  
  20. Key:Run()
  21.  
  22. game:GetService("RunService").Heartbeat:connect(function()
  23.     print(Key.ServerKey)
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement