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
 

i need a little bit of help

Previous Thread :: Next Thread 
XxDogShadowxX is online. XxDogShadowxX
Joined: 24 Feb 2013
Total Posts: 115
20 Sep 2017 06:27 PM
i have a falling roof trigger when you step on a block, but then you step on it, many roofs appear, how do i make it so only # ###### here is the script: local function clone() local cloner = game.ServerStorage.Fallingroof1:Clone() cloner.Parent = game.Workspace end script.Parent.Touched:connect(function(hit) clone() end)
Report Abuse
XxDogShadowxX is online. XxDogShadowxX
Joined: 24 Feb 2013
Total Posts: 115
20 Sep 2017 06:29 PM
the hashtags are supposed to say: makes one roof
Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
20 Sep 2017 06:39 PM
add a debounce

local debounce = false
local x = 4

local function clone()
if debounce == false then
debounce = true
local cloner = game.ServerStorage.Fallingroof1:Clone()
cloner.Parent = game.Workspace
wait(x)
debounce = false
else
print("no")
end
end

script.Parent.Touched:Connect(clone) --u dont need to connect another function to call a function unless u really needed that argument


#code error("you're*")
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