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: FOR BLUEYMADDOG

Previous Thread :: Next Thread 
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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 is not online. 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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
24 Feb 2012 10:57 PM
does it work when you click the part?
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
24 Feb 2012 10:59 PM
brb, making this code much more efficient!
Report Abuse
miz656 is not online. 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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. 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
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
24 Feb 2012 11:02 PM
What am I supposed to do?
Report Abuse
miz656 is not online. 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
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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 is not online. 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
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
24 Feb 2012 11:12 PM
I LOVE WRESTLING :3
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
24 Feb 2012 11:13 PM
Good to know :l
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
24 Feb 2012 11:21 PM
what did I tell you ;D
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
24 Feb 2012 11:23 PM
lol i make things efficient :P
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
24 Feb 2012 11:25 PM
Put a semicolon by week 2.
Report Abuse
DementedKnight is not online. DementedKnight
Joined: 07 Aug 2009
Total Posts: 2244
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
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
24 Feb 2012 11:33 PM
'Explain what you want.... This script is too messed up :P"

Hem hem.... hypocrite...
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