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: How come this isn't working?

Previous Thread :: Next Thread 
Katherinae is not online. Katherinae
Joined: 12 Feb 2014
Total Posts: 4201
25 Jan 2017 10:45 PM
So, I know this may updated. If there is a fix / a better version then please do tell me.

script.Parent.Touched:connect(function()
game.Lighting.Model1:Clone().Parent = game.Workspace


end)

( Its a model of 2 blocks ) For some reason, Even in lighting Its still visible, And whenever you touched the brick, It just spammed more of the exact same model.


ITS A JOKE. TAKE IT OR LEAVEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Report Abuse
DreamsWork is not online. DreamsWork
Joined: 20 Jan 2010
Total Posts: 36796
25 Jan 2017 10:56 PM
script.Parent.Touched:connect(function()
game.Lighting.Model1:Clone() = modelClone
modelClone.Parent = game.Workspace

end)

not that good at clones, but try this.
Report Abuse
Katherinae is not online. Katherinae
Joined: 12 Feb 2014
Total Posts: 4201
25 Jan 2017 10:58 PM
Doesn't work :(


ITS A JOKE. TAKE IT OR LEAVEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
Report Abuse
DreamsWork is not online. DreamsWork
Joined: 20 Jan 2010
Total Posts: 36796
25 Jan 2017 11:01 PM
script.Parent.Touched:connect(function()
modelClone = game.Lighting.Model1:Clone()
modelClone.Parent = game.Workspace

end)

sorry my bad this should work
Report Abuse
DreamsWork is not online. DreamsWork
Joined: 20 Jan 2010
Total Posts: 36796
25 Jan 2017 11:03 PM
if that doesnt work, is there 2 models inside model1? like 2 bricks or whatever?
Report Abuse
violetbrute4 is not online. violetbrute4
Joined: 21 Dec 2012
Total Posts: 441
25 Jan 2017 11:04 PM
debounce = false
script.Parent.Touched:connect(function()
if debounce = false then
local model = game.Lighting.Model1:Clone()
denounce = true
model.Parent = workspace
wait(10)
denounce = false
else
print("wait for debounce")
end
Report Abuse
Katherinae is not online. Katherinae
Joined: 12 Feb 2014
Total Posts: 4201
25 Jan 2017 11:05 PM
There is 2 bricks


#code if "I cant code" == true then print("Help") elseif print("I can code! Wow!")
Report Abuse
violetbrute4 is not online. violetbrute4
Joined: 21 Dec 2012
Total Posts: 441
25 Jan 2017 11:06 PM
Sorry had a spelling error in the first one,
debounce = false
script.Parent.Touched:connect(function()
if debounce = false then
local model = game.Lighting.Model1:Clone()
debounce = true
model.Parent = workspace
wait(10)
denounce = false
else
print("wait for debounce")
end
Report Abuse
DreamsWork is not online. DreamsWork
Joined: 20 Jan 2010
Total Posts: 36796
25 Jan 2017 11:07 PM
oops yeah, didnt read the second part. Thought your script wasn't working to clone them. Yeah, you'd need a debounce.
Report Abuse
DreamsWork is not online. DreamsWork
Joined: 20 Jan 2010
Total Posts: 36796
25 Jan 2017 11:29 PM
local buttonPressed = false
script.Parent.Color = Color3.fromRGB(0,255,0)
script.Parent.Touched:connect(function(touched)
script.Parent.Color = Color3.fromRGB(255,0,0)
if not buttonPressed then
buttonPressed = true
modelClone = game.Lighting.Model1:Clone()
modelClone.Parent = game.Workspace
wait(10)
buttonPressed = false
script.Parent.Color = Color3.fromRGB(255,0,0)
end
end)

Try this, it will turn the brick red while waiting for debounce, and it will turn it green after. You can change the colors in the RGB sections, and you can change the debounce time in the wait part.
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