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 » Game Design
Home Search
 

Re: Wait(4) taking forever?

Previous Thread :: Next Thread 
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 01:32 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent.ClassName ~= "Hat" then
if hit.Parent.Humanoid then
hit.Parent.Torso.Anchored = true
local ice = game.Lighting.Hugeiceprop:Clone()
ice.Parent = game.Workspace
ice.Anchored = true
ice.CFrame = hit.Parent.Torso.CFrame
wait(4)
ice:Destroy()
hit.Parent.Torso.Anchored = false
end
end
end)

Everything works fine, except that the player is still frozen after wait(4)


i think people will bash me for this
Report Abuse
ScriptOn is not online. ScriptOn
Joined: 22 Aug 2010
Total Posts: 10885
07 Sep 2015 01:42 PM
if hit.Parent:findFirstChild("Humanoid") then
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 01:44 PM
I like the tip, but the Wait(4) still doesn't complete. I tried using multiple wait() but that didn't work either.

Updated Script

script.Parent.Touched:connect(function(hit)
if hit.Parent.ClassName ~= "Hat" then
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent.Torso.Anchored = true
local ice = game.Lighting.Hugeiceprop:Clone()
ice.Parent = game.Workspace
ice.Anchored = true
ice.CFrame = hit.Parent.Torso.CFrame
wait(1)
ice.Transparency = 0.6
wait(1)
ice.Transparency = 0.8
wait(1)
ice.Transparency = 0.9
ice:Destroy()
hit.Parent.Torso.Anchored = false
end
end
end)


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 01:46 PM
I think I found the problem, I need a debounce for it. The ice is cloning way too many times.


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 01:52 PM
Even after using a debounce script, I cannot use any wait() more than one. Any solutions?


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:01 PM
Help?


i think people will bash me for this
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
07 Sep 2015 02:02 PM
omg why is your indenting so bad
Report Abuse
DermonDarble is not online. DermonDarble
Joined: 04 Jun 2015
Total Posts: 2576
07 Sep 2015 02:03 PM
check output too
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:04 PM
15:03:47.997 - Humanoid is not a valid member of Player
15:03:47.998 - Script 'Players.Player.Backpack.Fire Rune.Handle.LocalScript', Line 26
15:03:47.999 - Stack End
15:03:51.708 - Humanoid is not a valid member of Player
15:03:51.709 - Script 'Players.Player.Backpack.Ice Rune.Handle.LocalScript', Line 26
15:03:51.710 - Stack End


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:10 PM
Honestly, this might be a glitch on roblox's side.


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:11 PM
I thought I would not have trouble with such a simple thing like wait().


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:18 PM
Help, please...


i think people will bash me for this
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
07 Sep 2015 02:20 PM
Humanoid is a part of the character, not the player.
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:21 PM
Player is what the character is called in studio test.


i think people will bash me for this
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
07 Sep 2015 02:22 PM
No cause there is a humanoid in character of player lol
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:33 PM
hnng


i think people will bash me for this
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:49 PM
HNNNG


i think people will bash me for this
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
07 Sep 2015 02:54 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Torso.Anchored = true
local ice = game.Lighting.Hugeiceprop:Clone()
ice.Parent = game.Workspace
ice.Anchored = true
ice.CFrame = hit.Parent.Torso.CFrame
wait(4)
ice:Destroy()
hit.Parent.Torso.Anchored = false
end
end)

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 02:58 PM
still doesnt unfreeze


i think people will bash me for this
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
07 Sep 2015 03:00 PM
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local priorspeed = hit.Parent.Humanoid.WalkSpeed
hit.Parent.Humanoid.WalkSpeed = 0
local ice = game.Lighting.Hugeiceprop:Clone()
ice.Parent = game.Workspace
ice.Anchored = true
ice.CFrame = hit.Parent.Torso.CFrame
wait(4)
ice:Destroy()
hit.Parent.Humanoid.WalkSpeed = priorspeed
end
end)

/gowild

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 03:01 PM
Still doesn't work. Honestly, I think this is on ROBLOX's side.


i think people will bash me for this
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
07 Sep 2015 03:01 PM
no, this is a problem with you

are you doing this in a server script?

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 03:02 PM
I tried doing it in both, nothing worked.


i think people will bash me for this
Report Abuse
Kekodeko is not online. Kekodeko
Joined: 27 Jul 2015
Total Posts: 1676
07 Sep 2015 03:04 PM
OMG STFU THIS IS A STUPID FORUM PUT IT IN SCRIPTS!!! IF YOU CAN'T SCRIPT IT TELL SCRIPT HELPERS!! God you're annoying as hell!
Report Abuse
tardysauce is not online. tardysauce
Joined: 05 May 2012
Total Posts: 8444
07 Sep 2015 03:05 PM
scripting helpers is gone
scripters subforum is for scripting discussions
this is a thread, not a forum, honey.
stop raging.


i think people will bash me for this
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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