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: Message click script

Previous Thread :: Next Thread 
Dagrunt12 is not online. 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
bradleyp118 is not online. bradleyp118
Joined: 28 Mar 2010
Total Posts: 1128
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
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
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
bradleyp118 is not online. bradleyp118
Joined: 28 Mar 2010
Total Posts: 1128
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
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