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 » Scripting Helpers
Home Search
 

Re: Freeze Script

Previous Thread :: Next Thread 
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
14 Dec 2013 12:47 PM
This script is meant to freeze players when touching a certain block, however I'm quite new to scripting, so I only came up with a little bit of the script. I need someone to help me with this.

Character.Walkspeed = 0
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
14 Dec 2013 12:49 PM
Try learning about:

functions
arguments
events

Everything else you've got down.
Report Abuse
freerobux456 is not online. freerobux456
Joined: 25 Feb 2010
Total Posts: 244
14 Dec 2013 12:50 PM
your close with the walkspeed thing, let me get the ball rolling some

isert this script into the freezing brick

function onTouched(hit)
g = hit.Parent:findFirstChild("Humanoid")
g.Walkspeed = 0
-- let me know if that works
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
14 Dec 2013 12:51 PM
^ Add an end at the end, and a connection line.
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
14 Dec 2013 12:52 PM
Doesnt the g.Walkspeed=0 has an error.
Report Abuse
DrRandomous is not online. DrRandomous
Joined: 25 Mar 2011
Total Posts: 1702
14 Dec 2013 12:53 PM
It's WalkSpeed, not Walkspeed. Just so you know.

~DrRandomous
'Nerd'
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
14 Dec 2013 12:57 PM
Still doesnt work, Ive tried everything.
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
14 Dec 2013 01:00 PM
function onTouched(hit)
g=hit.Parent:findFirstChild'Humanoid';
g.Character.Anchored=true;
end;

lol
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
14 Dec 2013 01:04 PM
Still wont work, Maybe its something to do with cancollide being off? Because I'm trying to make a Cryogenic Chamber that freezes you, you fall through the floor and then unfreeze.
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
14 Dec 2013 01:12 PM
hit.Torso.Anchored = true

or

hit.Animate.Disabled = true
Report Abuse
MattIsAwsomeLol is not online. MattIsAwsomeLol
Joined: 20 Oct 2013
Total Posts: 38
14 Dec 2013 01:14 PM
Omgzzz, here...

function Touched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h ~= nil then
h.WalkSpeed = 0
end
end

script.Parent.Touched:connect(Touched)
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
14 Dec 2013 01:16 PM
Still wont work, I need one that works when CanCollide is turned off.
Report Abuse
FumeiSencho is not online. FumeiSencho
Joined: 07 Apr 2013
Total Posts: 452
14 Dec 2013 01:33 PM
Here. Try this:

function onTouch(hit)
if hit.Name="Torso" or "Head" then -- Ensures that the
-- thing that hit the brick is a player's body part.
hit.Parent.Humanoid.Walkspeed=0
end
script.Parent.Touched:connect(onTouch)
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
14 Dec 2013 01:42 PM
Matt And Funchis worked. Thanks guys! Youve helped me hugely with my game!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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