|
| 07 Nov 2011 12:55 PM |
function onPlayerEntered Instance.new = "Message" Message name = "Msg" Msg text = "Welcome to my Tycoon Hope you enjoy!" wait(3) game.workspace.Msg:remove() end
would this work!!! Thx |
|
|
| Report Abuse |
|
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
|
| 07 Nov 2011 01:21 PM |
Msg = Instance.new("Message") Msg.Parent = Workspace Msg.text = "Welcome to my Tycoon Hope you enjoy!" wait(3) Msg:Remove() end
i havent done onPlayerEntered connection line thats only thing i didnt do but its wrong |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 07 Nov 2011 04:09 PM |
| You forgot your connection line. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 04:27 PM |
@ dragon
no end needed capitilize the T in text |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 07 Nov 2011 04:35 PM |
^
I think he accidentally forgot the first line. |
|
|
| Report Abuse |
|
|
|
| 07 Nov 2011 04:52 PM |
| There are a lot more mistakes than the connection line. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 08 Nov 2011 08:21 PM |
| Ok so what is the script please |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2011 08:22 PM |
| The complete script actually |
|
|
| Report Abuse |
|
|
AfroSlice
|
  |
| Joined: 12 Jun 2011 |
| Total Posts: 5023 |
|
|
| 08 Nov 2011 08:27 PM |
this will make a hint that says welcome (player name here) !
function enter(player) local m = Instance.new("Message") m.Text = "Welcome to my Tycoon " ..player.Name.. "!" wait(3) game.workspace.m:remove() end game.Players.ChildAdded:connect(enter)
- AfroSlice |
|
|
| Report Abuse |
|
|
AfroSlice
|
  |
| Joined: 12 Jun 2011 |
| Total Posts: 5023 |
|
|
| 08 Nov 2011 08:27 PM |
adding to my post above, when someone joins the game that message will show
- AfroSlice |
|
|
| Report Abuse |
|
|
dragon829
|
  |
| Joined: 12 Aug 2008 |
| Total Posts: 741 |
|
|
| 08 Nov 2011 08:27 PM |
function onPlayerEntered() m = Instance.new("Message", Workspace) m.Text = "I hope you enjoy my tycoon!" wait(3) m:remove() end
game.Workspace.onEntered:connect(onPlayerEntered)
I think I might gotten the lone ^^ wrong |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2011 08:28 PM |
local Players = game.Players local Debris = game.Debris
function waitFor(parent, childName, maxTime) local waited = 0 maxTime = type(maxTime) == 'number' and maxTime or 5 while waited < maxTime and not parent:FindFirstChild(childName) do waited = waited + wait() end return parent:FindFirstChild(childName) end
Players.PlayerAdded:connect(function(player) local message = Instance.new('Message', waitFor(player, "PlayerGui")) message.Text = "Welcome to my tycoon!" Debris:AddItem(message, 3) end) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 08 Nov 2011 08:39 PM |
@dragon
OnEnter is invalid of Workspace...Someting like that. |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2011 09:47 PM |
@afroslice Thanks for a cool script afroslice! |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2011 09:52 PM |
function PlrAdded(plr) local m = Instance.new("Message", workspace) m.Text = "Welcome to my game "..plr.Name.."!" wait(3) m:remove() end game.Players.PlayerAdded:connect(PlrAdded)
~If it tastes bad or horrible, it is probably healthy~ |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 08 Nov 2011 10:04 PM |
^
YOU COPIED THAT FROM THE OPFOR! |
|
|
| Report Abuse |
|
|
|
| 08 Nov 2011 10:18 PM |
No?
~If it tastes bad or horrible, it is probably healthy~ |
|
|
| Report Abuse |
|
|
Tixrich
|
  |
| Joined: 30 Oct 2011 |
| Total Posts: 17 |
|
|
| 08 Nov 2011 10:57 PM |
| You hax forgoten the () at the end of OnPlayerEntered. :D |
|
|
| Report Abuse |
|
|