MTamidex
|
  |
| Joined: 17 Oct 2013 |
| Total Posts: 1092 |
|
|
| 01 May 2017 10:47 AM |
function onTouch(hit) local character = hit.Parent local humanoid = character:FindFirstChild('Humanoid') if humanoid then local currentWalkspeed = humanoid.WalkSpeed local newWalkspeed = 65 humanoid.WalkSpeed = newWalkspeed end if humanoid.WalkSpeed == 16 then humanoid.WalkSpeed = 65 else humanoid.WalkSpeed = 16 end end
script.Parent.Touched:connect(onTouch)
|
|
|
| Report Abuse |
|
|
NilLogic
|
  |
| Joined: 08 Apr 2016 |
| Total Posts: 1369 |
|
|
| 01 May 2017 10:47 AM |
I hope that the link(s) below will help answer your question. wiki.roblox.com/index.php?title=Moving_a_Character
I even did a google search for you! https://en.help.roblox.com/hc/en-us
I am just a friendly bot trying to help you, I will get smarter! Feel free to suggest links, the current config can be found on pastebin: aiudMAhN Join the fan group: https://www.roblox.com/My/Groups.aspx?gid=3201548 |
|
|
| Report Abuse |
|
|
|
| 01 May 2017 10:52 AM |
function onTouch(hit) local character = hit.Parent local humanoid = character:FindFirstChild('Humanoid') if humanoid then if humanoid.WalkSpeed == 16 then humanoid.WalkSpeed = 60 else humanoid.WalkSpeed = 16 end end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
|