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: this is stupid

Previous Thread :: Next Thread 
Dodeca is not online. Dodeca
Joined: 11 Sep 2011
Total Posts: 13649
29 Dec 2014 04:29 PM
trying to make it where you enter text into a textbox and then make it into a message by clicking a green button called MsgEnter, textbox is called Msg

function display()
local m = Instance.new("Message")
local msg = script.Parent.Msg
m.Text = msg.Text
wait(5)
m:Remove()
end

script.Parent.MsgEnter.MouseButton1Click:connect(display())


Errors:
Attempt to connect failed: Passed value is not a function
attempt to call a nil value
Report Abuse
easterbunnytheepic is not online. easterbunnytheepic
Joined: 16 Mar 2013
Total Posts: 19
29 Dec 2014 04:32 PM
What lines of script? It might be because you didn't give the instance a parent.
Report Abuse
easterbunnytheepic is not online. easterbunnytheepic
Joined: 16 Mar 2013
Total Posts: 19
29 Dec 2014 04:35 PM
When you call the function at the end, remove the parenthesis so instead of (display()) have (display)
Report Abuse
Dodeca is not online. Dodeca
Joined: 11 Sep 2011
Total Posts: 13649
29 Dec 2014 04:43 PM
can you explain to me the :ToNumber() method?

I had this before added in the script

local t = script.Parent.Time.Text:ToNumber()

and then wait(t)


but it didnt work
Report Abuse
Dodeca is not online. Dodeca
Joined: 11 Sep 2011
Total Posts: 13649
29 Dec 2014 04:46 PM
ah i fixed

wait(tonumber(t))
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