Advertisement
iDevDesire

Walkspeed gui module

Oct 22nd, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. --localscript
  2. local player = game.Players.LocalPlayer
  3. local module = require(script.Parent.MainModule)
  4. local walkspeed = 30
  5. script.Parent.TextButton.MouseButton1Click:Connect(function()
  6.     module.WalkSpeedUp(player, walkspeed)
  7. end)
  8.  
  9. --module
  10. local module = {}
  11. function module.WalkSpeedUp(player, walkspeed)
  12.     player.Character.Humanoid.WalkSpeed = walkspeed
  13. end
  14. return module
  15. --iDevDesire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement