of     1   

Indignationem
#36767954Tuesday, November 09, 2010 10:15 PM GMT

I know its against the rules to ask for scripts but I have a question. I keep trying to make a message pop up when you touch a brick, but I cant find out how, I have tried different tests, but it wont work. Can anyone help me?
Swordphin123
#36768051Tuesday, November 09, 2010 10:17 PM GMT

script.Parent.Touched:connect(function(hit) if not hit.Parent or hit.Name == "Paintball" then return end if hit.Parent:findFirstChild("Humanoid") then player = game.Players:GetPlayerFromCharacter(hit.Parent) m = Instance.new("Message", player) m.Text = "Hi! Im bob!" wait(3) m:remove() end end)
somethingoranother
#36768070Tuesday, November 09, 2010 10:18 PM GMT

Define message. Like, the message that covers yoru screen? Or do you mean a GUI? Or a humanoid bubble?
Swordphin123
#36768111Tuesday, November 09, 2010 10:19 PM GMT

Its a little fog square that appears on the top left hand corner.
Indignationem
#36768173Tuesday, November 09, 2010 10:20 PM GMT

A message that covers the screen. Can you add comments. Im kinda new to scripting and I need a little extra support
Swordphin123
#36768242Tuesday, November 09, 2010 10:21 PM GMT

You want it to cover the screen? Well then that'll be showned to everyone, correct?
somethingoranother
#36768261Tuesday, November 09, 2010 10:21 PM GMT

function onTouched() m=Instance.new("Message") m.Parent=game.Workspace m.Text="INSERTTEXTHERE" end script.Parent.Touched:connect(onTouched)
Indignationem
#36768268Tuesday, November 09, 2010 10:21 PM GMT

Correct.
Emess
#36768272Tuesday, November 09, 2010 10:21 PM GMT

You can't cover the screen with a message that is viewable to only one person, but however message is deprecated and it is suggested that you use Gui instead.
Indignationem
#36768621Tuesday, November 09, 2010 10:28 PM GMT

Wouldnt I need to add the brick name anywhere? And would I put the script in the brik? Or in workspace?
Swordphin123
#36768859Tuesday, November 09, 2010 10:32 PM GMT

You try it. Thats the most unefficent question i ever saw.
Emess
#36768884Tuesday, November 09, 2010 10:32 PM GMT

If you put a Message in Workspace, the Message will be viewed to everyone.
domos666
#36772401Tuesday, November 09, 2010 11:22 PM GMT

You should put the script in the brick...

    of     1