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: Lordrambo I need help!

Previous Thread :: Next Thread 
XRoblox2486 is not online. XRoblox2486
Joined: 18 Feb 2012
Total Posts: 2381
27 Jun 2013 09:19 PM
Mission: In a different script, make a brick that, when touched, makes another brick at the first brick's position.

What I got so far:

function whentouched()
game.Workspace.Part:Clone()
x = script.Parent:Clone()
x.Parent = Workspace
x.Name = ClonedPart
end

script.Parent.Touched.connect(whentouched)



~If you say it again, I might care more this time~
Report Abuse
asimo3089 is not online. asimo3089
Joined: 19 Apr 2009
Total Posts: 1184
27 Jun 2013 09:22 PM
You need to learn more on the wiki before doing this type of stuff...


function whentouched()
x = script.Parent:Clone()
x.Parent = game.Workspace
x.CFrame = script.Parent.CFrame
x.Name = "ClonedPart"
end
script.Parent.Touched.connect(whentouched)
Report Abuse
XRoblox2486 is not online. XRoblox2486
Joined: 18 Feb 2012
Total Posts: 2381
27 Jun 2013 09:29 PM
This is the error that I am getting in the output

Workspace.Part.Script:8: bad argument #1 to 'connect' (RBXScriptSignal expected, got function)


~If you say it again, I might care more this time~
Report Abuse
Desperian is not online. Desperian
Joined: 07 Feb 2012
Total Posts: 3371
27 Jun 2013 09:31 PM
script.Parent.Touched:connect(whentouched)
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