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 » Club Houses » ROBLOX Talk
Home Search
 

Re: scripting help is dead. Halp? :?

Previous Thread :: Next Thread 
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 10:55 PM
function click()
if script.Parent.Name = Teafill
then
script.Parent.Smoke:Remove()
script.Parent.Transparency = 0
wait(5)
script.Parent.Parent.Tea1.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea2.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea3.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea4.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea5.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea6.Color = Color3.new("Bright blue")
wait(3)
script.Parent.Parent.Tea7.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea8.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea9.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea10.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea11.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea12.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea13.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea14.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea15.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea16.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea17.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea18.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea19.Color = Color3.new("Bright blue")
script.Parent.Name = Teafull
else
S = Instance.new("Smoke")
S.Parent = Script.Parent
S.Color = Color3.new("100, 64, 20")
S.RiseVelocity = 5
S.Size = 1
S.Opacity = 1
wait(6)
script.Parent.Parent.Tea1.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea2.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea3.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea4.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea5.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea6.Color = Color3.new("Reddish brown")
wait(3)
script.Parent.Parent.Tea7.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea8.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea9.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea10.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea11.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea12.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea13.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea14.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea15.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea16.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea17.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea18.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea19.Color = Color3.new("Reddish brown")
script.Parent.Name = Teafill
end
end
keypad.Parent.MouseButton1Down:connect(function(click)


line 2 "then expected near ="

The Chezburger Lover, ❶❸❸❼
Report Abuse
Robodog112 is not online. Robodog112
Top 100 Poster
Joined: 15 Aug 2008
Total Posts: 38052
25 Apr 2013 10:55 PM
Well crap.... I don't know how to script...

-Why are you all staring at me!??!
Report Abuse
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 10:56 PM
well shoot..

The Chezburger Lover, ❶❸❸❼
Report Abuse
Twinmill42 is not online. Twinmill42
Joined: 04 Jun 2012
Total Posts: 16785
25 Apr 2013 10:56 PM
[ Content Deleted ]
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 10:57 PM
if script.Parent.Name == Teafill

two equals signs mean is equal to, for reading values and such

~ The ATR Fishie ~
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 10:58 PM
if script.Parent.Name == "Teafill"

My bad, string values are in quotes. Strings are values with letters, numbers, symbols, basically anything. Names are strings.

~ The ATR Fishie ~
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 10:59 PM
This needs a complete debug...

~ The ATR Fishie ~
Report Abuse
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 11:00 PM
That is okay, thanks for that, because I didn't know that.

The Chezburger Lover, ❶❸❸❼
Report Abuse
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 11:09 PM
fixed everything but the click detector, located at script.Parent.ClickDetector

dunt no how
tried
script.Parent.ClickDetector.Activated:connect(click)


The Chezburger Lover, ❶❸❸❼
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 11:09 PM
local t = script.Parent.Parent.Tea -- this shortens it a bit

function click()
if script.Parent.Name == "Teafill"
then
script.Parent.Smoke:remove()
script.Parent.Transparency = 0
wait(5)
t1.Color = Color3.new("Bright blue")
wait(1)
t2.Color = Color3.new("Bright blue")
wait(1)
t3.Color = Color3.new("Bright blue")
wait(1)
t4.Color = Color3.new("Bright blue")
t5.Color = Color3.new("Bright blue")
wait(2)
t6.Color = Color3.new("Bright blue")
wait(3)
t7.Color = Color3.new("Bright blue")
wait(2)
t8.Color = Color3.new("Bright blue")
t9.Color = Color3.new("Bright blue")
t10.Color = Color3.new("Bright blue")
wait(1)
t11.Color = Color3.new("Bright blue")
t12.Color = Color3.new("Bright blue")
wait(2)
t13.Color = Color3.new("Bright blue")
t14.Color = Color3.new("Bright blue")
t15.Color = Color3.new("Bright blue")
wait(2)
t16.Color = Color3.new("Bright blue")
t17.Color = Color3.new("Bright blue")
t18.Color = Color3.new("Bright blue")
wait(2)
t19.Color = Color3.new("Bright blue")
script.Parent.Name = Teafull
else
S = Instance.new("Smoke")
S.Parent = script.Parent -- "script" is always lowercase
S.Color = Color3.new("100, 64, 20")
S.RiseVelocity = 5
S.Size = 1
S.Opacity = 1
wait(6)
t1.Color = Color3.new("Reddish brown")
wait(1)
t2.Color = Color3.new("Reddish brown")
wait(1)
t3.Color = Color3.new("Reddish brown")
wait(1)
t4.Color = Color3.new("Reddish brown")
t5.Color = Color3.new("Reddish brown")
wait(2)
t6.Color = Color3.new("Reddish brown")
wait(3)
t7.Color = Color3.new("Reddish brown")
wait(2)
t8.Color = Color3.new("Reddish brown")
t9.Color = Color3.new("Reddish brown")
t10.Color = Color3.new("Reddish brown")
wait(1)
t11.Color = Color3.new("Reddish brown")
t12.Color = Color3.new("Reddish brown")
wait(2)
t13.Color = Color3.new("Reddish brown")
t14.Color = Color3.new("Reddish brown")
t15.Color = Color3.new("Reddish brown")
wait(2)
t16.Color = Color3.new("Reddish brown")
t17.Color = Color3.new("Reddish brown")
t18.Color = Color3.new("Reddish brown")
wait(2)
t19.Color = Color3.new("Reddish brown")
script.Parent.Name = Teafill
end
end
script.Parent.MouseButton1Down:connect(click) -- just click here, no parenthesis

~ The ATR Fishie ~
Report Abuse
emporerj is not online. emporerj
Joined: 23 Nov 2010
Total Posts: 39351
25 Apr 2013 11:10 PM
here

function click()
if script.Parent.Name == Teafill
then
script.Parent.Smoke:Remove()
script.Parent.Transparency = 0
wait(5)
script.Parent.Parent.Tea1.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea2.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea3.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea4.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea5.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea6.Color = Color3.new("Bright blue")
wait(3)
script.Parent.Parent.Tea7.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea8.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea9.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea10.Color = Color3.new("Bright blue")
wait(1)
script.Parent.Parent.Tea11.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea12.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea13.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea14.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea15.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea16.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea17.Color = Color3.new("Bright blue")
script.Parent.Parent.Tea18.Color = Color3.new("Bright blue")
wait(2)
script.Parent.Parent.Tea19.Color = Color3.new("Bright blue")
script.Parent.Name = Teafull
else
S = Instance.new("Smoke")
S.Parent = Script.Parent
S.Color = Color3.new("100, 64, 20")
S.RiseVelocity = 5
S.Size = 1
S.Opacity = 1
wait(6)
script.Parent.Parent.Tea1.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea2.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea3.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea4.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea5.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea6.Color = Color3.new("Reddish brown")
wait(3)
script.Parent.Parent.Tea7.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea8.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea9.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea10.Color = Color3.new("Reddish brown")
wait(1)
script.Parent.Parent.Tea11.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea12.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea13.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea14.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea15.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea16.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea17.Color = Color3.new("Reddish brown")
script.Parent.Parent.Tea18.Color = Color3.new("Reddish brown")
wait(2)
script.Parent.Parent.Tea19.Color = Color3.new("Reddish brown")
script.Parent.Name = Teafill
end
end
keypad.Parent.MouseButton1Down:connect(function(click)
Report Abuse
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 11:12 PM
thx peeps :D

The Chezburger Lover, ❶❸❸❼
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 11:12 PM
This isn't a GUI? This is a clickable block?

You don't use MouseButton1Down for that.

script.Parent.ClickDetector.MouseClick:connect(function(click)
-- Put your code in here. Get rid of the other stuff function
end) -- has a parenthese because the first line is an anonymous function.


~ The ATR Fishie ~
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 11:13 PM
btw keypad is an undefined variable.

~ The ATR Fishie ~
Report Abuse
Raisinbrain is not online. Raisinbrain
Joined: 09 Jan 2011
Total Posts: 14215
25 Apr 2013 11:17 PM
my mind hurts
Report Abuse
emporerj is not online. emporerj
Joined: 23 Nov 2010
Total Posts: 39351
25 Apr 2013 11:20 PM
that script has so many problems

it just needs to be rewritten
Report Abuse
reich4 is not online. reich4
Joined: 24 Apr 2013
Total Posts: 273
25 Apr 2013 11:20 PM
Piss off, mate.
Report Abuse
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 11:23 PM
Once I've clicked it, I can't click it again. to turn the rivers brown again

The Chezburger Lover, ❶❸❸❼
Report Abuse
al648 is not online. al648
Joined: 29 Jun 2008
Total Posts: 21067
25 Apr 2013 11:23 PM
@emp I'm just a newb at scripting, that is all :D

The Chezburger Lover, ❶❸❸❼
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 11:24 PM
If you are trying to simulate a teacup filling up with tea, there is an easy way to do it while making it look smoother than what you are using.

~ The ATR Fishie ~
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Apr 2013 11:28 PM
And I can't tell what code you are using at the moment. Paste it here or in a private message if you'd like.

~ The ATR Fishie ~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » ROBLOX Talk
   
 
   
  • 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