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: Easy script not working

Previous Thread :: Next Thread 
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:29 PM
function Clicked()
if script.Parent.Parent.NameThang.Text == Ness then
script.Parent.Parent.NameThang.Text = David
script.Parent.Parent.NameThang.Text = Ness
end
end
script.Parent.MouseButton1Down:connect(Clicked)

this script will not work, when i click the button the namethang will not change text
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
22 Aug 2014 03:31 PM
function Clicked()
if script.Parent.Parent.NameThang.Text == "Ness" then
script.Parent.Parent.NameThang.Text = "David"
script.Parent.Parent.NameThang.Text = "Ness"
end
end
script.Parent.MouseButton1Down:connect(Clicked)
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:33 PM
Hmm still wont work
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
22 Aug 2014 03:37 PM
db = 0
script.Parent.MouseButton1Click()
if db == 0 then
db = 1
if script.Parent.Parent.NameThang.Text == Ness then
script.Parent.Parent.NameThang.Text = David
script.Parent.Parent.NameThang.Text = Ness
end
db = 0
end
end)

Are you sure parents count is written in correct amount? And are you sure that NameThang is correct?
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
22 Aug 2014 03:38 PM
db = 0
script.Parent.MouseButton1Click()
if db == 0 then
db = 1
if script.Parent.Parent.NameThang.Text == "Ness" then
script.Parent.Parent.NameThang.Text = "David"
wait(5) -- Lets wait a time...
script.Parent.Parent.NameThang.Text = "Ness"
end
db = 0
end
end)

--forgot to put "s
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:39 PM
im very sure my parent count is correct and namethang was spelled right, btw your script didnt work
Report Abuse
davisky2 is not online. davisky2
Joined: 04 Mar 2012
Total Posts: 4710
22 Aug 2014 03:41 PM
did you tested with wait too? Because it should work... oh what does the output says?
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:43 PM
Nothing is happening in the output i click it and nothing happens
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:48 PM
Bump
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
22 Aug 2014 03:50 PM
function Clicked()
if script.Parent.Parent.NameThang.Text == "Ness" then
script.Parent.Parent.NameThang.Text = "David"
elseif script.Parent.Parent.NameThang.Text == "David" then
script.Parent.Parent.NameThang.Text = "Ness"
end
end
script.Parent.MouseButton1Down:connect(Clicked)

So, like, you were changing it to David then INSTANTLY changing it back to "Ness", making it look like it never changed.

This new one will make clicking it once change it to David, clicking again will change it back to Ness.
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:52 PM
theres no text in the text label right now
Report Abuse
theGOLDENidol is not online. theGOLDENidol
Joined: 11 Apr 2011
Total Posts: 787
22 Aug 2014 03:54 PM
k i got it
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