Dagrunt12
|
  |
| Joined: 01 Jul 2011 |
| Total Posts: 2145 |
|
|
| 13 May 2013 01:43 PM |
| Can someone please help me by writing a script that when a brick is clicked it displays a message onto the players screen? |
|
|
| Report Abuse |
|
|
|
| 13 May 2013 01:47 PM |
Use a click detector and try messing around with GUI's and the tween feature
Join my group yes, http://www.roblox.com/My/Groups.aspx?gid=858849 |
|
|
| Report Abuse |
|
|
|
| 13 May 2013 01:55 PM |
MessageText = "" -- Keep the quotation marks there. It's a string.
function onClicked(mouse) -- script starts here local a = game.Players:GetPlayerFromCharacter(mouse.Parent) if a ~= nil then b = a:findFirstChild("PlayerGui") if b ~= nil then local c = Instance.new("Message") c.Parent = b c.Text = MessageText end end end script.Parent.ClickDetector.MouseClick:connect(onClicked) -- script ends here
Create a part in game.Workspace.
Put a ClickDetector in it.
Also, make a script inside the part, not the ClickDetector. Copy and paste the text inside of the script. |
|
|
| Report Abuse |
|
|
|
| 13 May 2013 03:06 PM |
Aww man he beat me to it, but that would be the boring dull message with grey
Join my group yes, http://www.roblox.com/My/Groups.aspx?gid=858849 |
|
|
| Report Abuse |
|
|