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: This function isnt working

Previous Thread :: Next Thread 
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:41 AM
I just scripted this function

    function msg(message, dur)
        if msg and dur then
            m=Instance.new("Message", Workspace)
            m.Text=msg
            wait(dur)
            m:remove()
        end
    end

and called on it as so:

    
    msg("WIJ//HOLO[3]//PROGRAM//LOADED["..string.upper(chosen).."]//Enter_when_ready//", 5)
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:43 AM
Chosen IS a variable
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
06 Apr 2013 08:48 AM
"if msg"

...
If the function and dur then?

...
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
06 Apr 2013 08:50 AM
m.Text = function

.........................................................................
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:52 AM
OJ OH OH. im dumb
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
06 Apr 2013 08:53 AM
You're not.
Happens to everybody.

Unless they pay attention... a lot...
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:54 AM
?

    function msg(message, dur)
        if message and dur then
            m=Instance.new("Message", Workspace)
            m.Text=msg
            wait(dur)
            m:remove()
        end
    end
Report Abuse
THEBobMcBobbingston is not online. THEBobMcBobbingston
Joined: 26 Feb 2011
Total Posts: 123
06 Apr 2013 08:55 AM
m.Text = msg

>m.Text = a function
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:55 AM
Because it's still now working..
Report Abuse
Cupkle is not online. Cupkle
Joined: 18 Jun 2012
Total Posts: 180
06 Apr 2013 08:56 AM
You defined the parameter 'message' but used 'msg' instead, which is the name of the function.

function msg(message, dur)
if message and dur then
local m=Instance.new("Message", Workspace) --you should make this local
m.Text=message
wait(dur)
m:remove()
end
end

Now that's right.
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:56 AM
*not

**Mi no comprendo**
Report Abuse
lolb3 is not online. lolb3
Joined: 16 Jan 2010
Total Posts: 2268
06 Apr 2013 08:56 AM
I'll try it, thanks both of you
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