generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: script that slows down your walkspeed when touched

Previous Thread :: Next Thread 
PowerfulPumpkin is not online. PowerfulPumpkin
Joined: 24 Mar 2009
Total Posts: 2792
26 Sep 2014 06:30 PM
how would you make a script that does this?
Report Abuse
morash is not online. 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
ToxicDominator is not online. ToxicDominator
Joined: 24 Oct 2013
Total Posts: 8373
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
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
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
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
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
Fluffmiceter is not online. Fluffmiceter
Joined: 28 Jan 2012
Total Posts: 6931
26 Sep 2014 06:54 PM
script.Touch = method do
playerTouched:GetStatistics("Speed") = draw(6)
terminate function;
end
Report Abuse
DevDarrien is not online. DevDarrien
Joined: 14 Sep 2014
Total Posts: 11
26 Sep 2014 09:51 PM
lol
Report Abuse
34GB is not online. 34GB
Joined: 21 Jul 2011
Total Posts: 2413
26 Sep 2014 11:39 PM
Not scripting helpers.

Wrong forum.
Report Abuse
Kodran is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image