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: ANOTHER Debounced script.

Previous Thread :: Next Thread 
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
22 Jun 2012 02:25 AM
p=true
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if p then
p=false
if hit.Parent.Name == "cyclone3260" then
local a = Instance.new("Message",game.Workspace)
a.Text = "Welcome Cyclone3260"
script.Parent.CanCollide = false
wait(2)
a:Destroy()
script.Parent.CanCollide = true
else
hit.Parent:BreakJoints()
wait(1)
p=true
end
end
end)
-----------
AGAIN it was working but sending up several messages and so I added debounce. And it stopped working. ._.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
22 Jun 2012 02:27 AM
p = true
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if p == true then
p = false
if hit.Parent.Name == "cyclone3260" then
local a = Instance.new("Message",game.Workspace)
a.Text = "Welcome Cyclone3260"
script.Parent.CanCollide = false
wait(2)
a:Destroy()
script.Parent.CanCollide = true
else
hit.Parent:BreakJoints()
wait(1)
p = true
end
end
end
end)
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
22 Jun 2012 02:36 AM
Cheater... It did the same thing.. :P
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
22 Jun 2012 04:46 AM
p = true
script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
if p == true then
p = false
if hit.Parent.Name == "cyclone3260" then
local a = Instance.new("Message",game.Workspace)
a.Text = "Welcome Cyclone3260"
script.Parent.CanCollide = false
wait(2)
a:Destroy()
script.Parent.CanCollide = true
else
hit.Parent:BreakJoints()
wait(1)
end
p = true
end
end
end)
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