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: problem with code.

Previous Thread :: Next Thread 
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
10 Apr 2014 05:12 PM
Im typing on my phone so bear with me.

So i wrote a code that makes a welcome message. It is a message, not a gui.
I wrote it a couple weeks ago and it worked fine, well i check on my game yesterday and it wont work!

The output comes out with some crazy thing.

Keep in mind i havent edited or added anything to my game since i wrote it.

Got ideas?
Report Abuse
devRaver is not online. devRaver
Joined: 08 Apr 2013
Total Posts: 531
10 Apr 2014 05:23 PM
game.Players.PlayerAdded:connect(function(player)
msg = Instance.new("Message", Workspace)
msg.Text = "Welcome "..player.Name
wait(2)
msg:remove()
end)

This would broadcast the message to the whole server. Or should.
Report Abuse
Ace23333 is not online. Ace23333
Joined: 20 Nov 2011
Total Posts: 1341
10 Apr 2014 05:26 PM
function onEntered(player)
Message = Instance.new("Message", Workspace)
Message.Text = "Welcome" ..player.Name
wait(5)
Message:remove()
end
game.Players.PlayerAdded:connect(onEntered)

-- Same as devRaver's but maybe easier to study
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 Apr 2014 05:54 PM
[ Content Deleted ]
Report Abuse
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
10 Apr 2014 10:03 PM
so i think what im trying to accomplish is individual to the player
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 Apr 2014 10:04 PM
PlayerGui
Report Abuse
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
10 Apr 2014 10:06 PM
22:01:04.223 - Image failed to load: rbxasset://textures/ui/SettingsButton_sel.png: File not found
22:01:04.224 - Image failed to load: rbxasset://textures/ui/SettingsButton_sovr.png: File not found
22:01:04.225 - Image failed to load: rbxasset://textures/ui/SettingsButton_sdn.png: File not found



thats what my output gives me....
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
10 Apr 2014 10:08 PM
That shouldn't affect anything you're doing.
You're just missing 3 (stated, at least) files from RobloxFolder/content/textures/ui
Report Abuse
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
11 Apr 2014 12:24 AM
OK so i need to rewrite my code. that had worried me. thanks.
Report Abuse
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
11 Apr 2014 07:03 AM
function start()
local msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "(Welcome)"
wait(DisplayMessageTime)
msg:Remove()
wait(2)
end




that is what my script says
Report Abuse
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
11 Apr 2014 07:13 AM
im sorry for bothering you. my idiotic self DISABLED the script.
Report Abuse
Rocky28447 is not online. Rocky28447
Joined: 11 Dec 2009
Total Posts: 2912
11 Apr 2014 07:46 AM
Y'know, it's really hard giving help when you don't give what comes up in the output, AND you don't give us the script.
Report Abuse
IMSOEPICLE is not online. IMSOEPICLE
Joined: 29 Jul 2011
Total Posts: 452
11 Apr 2014 09:11 PM
sorry i was on my phone and didnt have access.
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
11 Apr 2014 09:47 PM
game.Players.PlayerAdded:connect(function(newP)
msg = Instance.new 'Message';
msg.Parent = game.Players.LocalPlayer.StarterGui
msg.Text = "Welcome and have fun,"..newP.Name.."!"
wait(4)
msg:Destroy()
end)



--Localscript in workspace.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
11 Apr 2014 09:50 PM
^ Not going to work
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
11 Apr 2014 09:52 PM
It wasnt a working code, it was a base
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
11 Apr 2014 09:57 PM
-- Mc, y u put msg in startergui?

funtion printmsg(text,time)
lol = Instance.New("Message", game.Workspace)
lol.Text = text
wait(time)
lol:Remove()
end

function msg(plr)
printmsg("Welcome to the game, "..plr.Name.."!", 3)
end

game.Players.PlayerAdded:connect(msg)
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