|
| 26 Sep 2014 06:30 PM |
| how would you make a script that does this? |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 26 Sep 2014 06:32 PM |
| You cannot because scripts do not have a Touched event. |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2014 06:35 PM |
script.Parent.Touched:connect(function(hit) if hit.Parent ~= nil then make walkspeed slow down end end) |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2014 06:42 PM |
@toxic Wow...
script.Parent.Touched:connect(function(hit) if hit.Parent then if hit.Parent:FindFirstChild('Humanoid') hit.Parent.Humanoid.Walkspeed=1 end end end) |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2014 06:50 PM |
speed = put how fast here
script.Parent.Touched:connect(function(part) if (part.Parent:FindFirstChild("Humanoid") then part.Parent.Humanoid.WalkSpeed = speed end end) |
|
|
| Report Abuse |
|
|
|
| 26 Sep 2014 06:54 PM |
script.Touch = method do playerTouched:GetStatistics("Speed") = draw(6) terminate function; end |
|
|
| Report Abuse |
|
|
| |
|
34GB
|
  |
| Joined: 21 Jul 2011 |
| Total Posts: 2413 |
|
|
| 26 Sep 2014 11:39 PM |
Not scripting helpers.
Wrong forum.
|
|
|
| Report Abuse |
|
|
Kodran
|
  |
| Joined: 15 Aug 2013 |
| Total Posts: 5330 |
|
|
| 27 Sep 2014 07:04 AM |
public class Script { public final int speed = 8; private void touched(Instance hit) { if (hit.Parent.Humanoid != null) { hit.Parent.Humanoid.WalkSpeed = speed; } } } |
|
|
| Report Abuse |
|
|