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: why wont this work??? (conveyer onclicked)

Previous Thread :: Next Thread 
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 12:31 PM
function onClicked()

game.Workspace.ramp01.ramp1.Velocity = Vector3.New(10,0,0)

end

script.Parent.ClickDetector.MouseClick:Connect(onClicked)



YES,there is a ClickDetector in the same group as the script (Parent)
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 12:32 PM
it says Connect is not a valid member on Workspace.ramp01.Button.Script, line 7


so what do i do?
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 01:07 PM
ok, so NOW, its:
-------------------

function onClicked()

game.Workspace.ramp01.ramp1.Velocity = Vector3.New(10,0,0)

end

script.Parent.ClickDetector.MouseClick:Connect(onClicked)



------------------------------------------------_-_-_-_-_-*@4!!!------

and the error im getting is:

Workspace.ramp01.Button.Script:3: attempt to call field 'New' (a nil value)







HALPZ!!!!INEEDZ!!!!

Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 01:08 PM
oops i meant:
------------------------------


function onClicked()

game.Workspace.ramp01.ramp1.Velocity = Vector3.New(10,0,0)

end

script.Parent.ClickDetector.MouseClick:connect(onClicked)



------------------------------------------------_-_-_-_-_-*@4!!!------

and the error im getting is:

Workspace.ramp01.Button.Script:3: attempt to call field 'New' (a nil value)
Report Abuse
benblue9 is not online. benblue9
Joined: 12 Aug 2008
Total Posts: 11417
26 Feb 2009 02:20 PM
hmm it looks like it should work..... ask someone like blobbyblob he will know
Report Abuse
eggieroll10 is not online. eggieroll10
Joined: 03 Aug 2007
Total Posts: 113
26 Feb 2009 02:31 PM
if its Locked or Ancored it wont work...
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
26 Feb 2009 02:36 PM
try changing "New" to "new"
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 03:16 PM
thanks, cuz thats where it says i screwed up testing now...
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 03:24 PM
Thanks sdfgw, it works, u get a cookie!






.----.
/ o O \
| o o O|
| O o |----- cookie lulz
\ o o /
`--- '
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 03:26 PM
oops, cookie fiald, 2nd attempt...



---.----.
-/ o O \
| o o O|
| O O |----- cookie lulz
-\ o o /
--`- --'
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
26 Feb 2009 03:27 PM
... lol
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
26 Feb 2009 03:34 PM

function onClicked()

game.Workspace.ramp01.ramp1.Velocity = Vector3.new(10,0,0)

end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
level140roblox is not online. level140roblox
Joined: 08 Jun 2008
Total Posts: 9577
26 Feb 2009 03:35 PM
O you already got it working xD. im slow today :3
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
27 Feb 2009 10:20 AM
woo i didnt expect that to work

wow ive got cookies from about 10 people in one day when i never have before!
Report Abuse
THEeric is not online. THEeric
Joined: 08 May 2008
Total Posts: 6185
27 Feb 2009 10:22 AM
lol
i get cookies all time time.... tracking cookies that my antivirus picks up lol...
the fbi wants me ded..........rawr
Report Abuse
sdfgw is not online. sdfgw
Top 50 Poster
Joined: 08 Jan 2009
Total Posts: 41681
27 Feb 2009 10:35 AM
*secretly suspects theeric of being 1x1x1x1* oh i see well i think ur innocent and the most wonderful person ive ever met



...




the point of this forum has already been solved so lets all praise 1x1x1x1 WHOOPS i mean theeric
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