|
| 24 Feb 2012 10:55 PM |
function onClicked () local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "'The note is dripping with blood, but you cope to read.'" -- Change the message to your likings. m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "I was nursed back to sanity, but the doctors aren't convinced." m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
function onClicked () local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "Week 1:" -- Change the message to your likings. m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(3) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "So I'm stuck here with the loonies 'til I'm let out." m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "Or if they let me out. -gulp-" m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "Week 2:" m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(3) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "The mental patients are on a rampage, doctors lost control of them." m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "They've trapped us all, keeping those exposed hostage, menacing us with blunt objects." m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(7) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace M.Text = "If your reading this I suggest you to leave immediately." m.Parent = game.Players:playerFromCharacter(hit.Parent) wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
local M = Instance.new("Message") M.Parent = game.Workspace m.Parent = game.Players:playerFromCharacter(hit.Parent) M.Text = "'The rest of the page is torn.'" wait(5) --How many seconds you want the message to appear on the screen. M:Remove()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
The script is supposed to change to each message, but its staying at the first message and not even removing it. |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 10:56 PM |
| I added m.Parent = game.Players:playerFromCharacter(hit.Parent) before wait() so it will only show the message to those who click it since before it showed it to everybody. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 10:56 PM |
| I would say something but I'm not BlueyMaddog... |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 10:57 PM |
| does it work when you click the part? |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 10:58 PM |
| @miz, he is chatting to me atm, and i told him to post it here so i can reply to it faster, sorry for him leaving you out... :o |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 10:59 PM |
| It works fine but it doesn't switch to the next message after the number of seconds in wait() |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 10:59 PM |
| It worked properly before I added the m.Parent = game.Players:playerFromCharacter(hit.Parent) but it showed it to everybody instead of the one that clicked it. |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 10:59 PM |
| brb, making this code much more efficient! |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:00 PM |
| First of all, he has two functions and one end... |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:01 PM |
| it wont work with your thing to make it so that only they click it, you need another way of activation because u cant single out players with the click detector |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:02 PM |
| Btw, why make a Message 11 times when you can make it once and just change the text? |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:04 PM |
Explain what you want.... This script is too messed up :P
|
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:06 PM |
| I want someone to click a brick, get a message then switch to another message and again and again but only show it to the one who clicked it. |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:10 PM |
| Hmm, I would fix it but I have a feeling BlueyDog is working on it and when I post his script is just gonna be their so...I'ma let BlueDog get this one :P |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 24 Feb 2012 11:16 PM |
local ms = { "'The note is dripping with blood, but you cope to read.'"; "I was nursed back to sanity, but the doctors aren't convinced."; "Week 1:"; "So I'm stuck here with the loonies 'til I'm let out."; "Or if they let me out. -gulp-"; "Week 2:" "The mental patients are on a rampage, doctors lost control of them."; "If your reading this I suggest you to leave immediately."; "They've trapped us all, keeping those exposed hostage, menacing us with blunt objects."; "'The rest of the page is torn.'" } local db = false local w = {5,5,3,5,5,3,5,7,5,5} function onClicked () if db then return end db = true local M = Instance.new("Message") for i=1,10 do M.Parent = game.Workspace M.Text = ms[i] wait(w[i]) M:Remove() end db = false end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:19 PM |
better version:
local ms = { "'The note is dripping with blood, but you cope to read.'"; "I was nursed back to sanity, but the doctors aren't convinced."; "Week 1:"; "So I'm stuck here with the loonies 'til I'm let out."; "Or if they let me out. -gulp-"; "Week 2:" "The mental patients are on a rampage, doctors lost control of them."; "If your reading this I suggest you to leave immediately."; "They've trapped us all, keeping those exposed hostage, menacing us with blunt objects."; "'The rest of the page is torn.'" } local db = false local w = {5,5,3,5,5,3,5,7,5,5} function onClicked () if db then return end db = true local M = Instance.new("Message",Workspace) for i=1,10 do M.Text = ms[i] wait(w[i]) end M:Destroy() db = false end
script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
|
| 24 Feb 2012 11:23 PM |
| lol i make things efficient :P |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:23 PM |
| Workspace.Part.Script:8: '}' expected (to close '{' at line 1) near '"The mental patients are on a rampage, doctors lost control of them." |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 24 Feb 2012 11:25 PM |
| Put a semicolon by week 2. |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:30 PM |
IT WORKS I LOVE YOU!!!!
But you messed up the order of messages :P Easily fixed though.
ZOMG TANX |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2012 11:33 PM |
'Explain what you want.... This script is too messed up :P"
Hem hem.... hypocrite... |
|
|
| Report Abuse |
|
|