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: Help me with this script Please!!!!!!

Previous Thread :: Next Thread 
tobymeyrick is not online. tobymeyrick
Joined: 13 Aug 2011
Total Posts: 1055
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 is not online. 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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
07 Nov 2011 04:09 PM
You forgot your connection line.
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
07 Nov 2011 04:27 PM
@ dragon

no end needed
capitilize the T in text
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
07 Nov 2011 04:35 PM
^

I think he accidentally forgot the first line.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
07 Nov 2011 04:52 PM
There are a lot more mistakes than the connection line.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
07 Nov 2011 04:54 PM
One step at a time..
Report Abuse
tobymeyrick is not online. tobymeyrick
Joined: 13 Aug 2011
Total Posts: 1055
08 Nov 2011 08:21 PM
Ok so what is the script please
Report Abuse
tobymeyrick is not online. tobymeyrick
Joined: 13 Aug 2011
Total Posts: 1055
08 Nov 2011 08:22 PM
The complete script actually
Report Abuse
AfroSlice is not online. 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 is not online. 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 is not online. 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
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
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 is not online. 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
tobymeyrick is not online. tobymeyrick
Joined: 13 Aug 2011
Total Posts: 1055
08 Nov 2011 09:47 PM

@afroslice
Thanks for a cool script afroslice!
Report Abuse
TheFunThings is not online. TheFunThings
Joined: 14 Oct 2011
Total Posts: 42
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
08 Nov 2011 10:04 PM
^

YOU COPIED THAT FROM THE OPFOR!
Report Abuse
TheFunThings is not online. TheFunThings
Joined: 14 Oct 2011
Total Posts: 42
08 Nov 2011 10:18 PM
No?

~If it tastes bad or horrible, it is probably healthy~
Report Abuse
Tixrich is not online. 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
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