zeke505Join Date: 2008-05-26 Post Count: 15765 |
oh wait fail
it wouldn't error
my bad |
|
OBFJoin Date: 2009-09-29 Post Count: 10709 |
I hate it when scripters fight. It's really pathetic. |
|
|
Well that guy is an idiot. How about you possibly get a life maybe go outside for the first time in your life. |
|
|
@Shockwave
My script worked perfectly fine. :/ |
|
ScriptaxJoin Date: 2010-04-04 Post Count: 531 |
[ Content Deleted ] |
|
|
Well that re_tard Shokwav said everyone that posted couldn't script because they were not posting as complex scripts as he posted. He just made them longer and all the more pointless. |
|
SolotaireJoin Date: 2009-07-30 Post Count: 30356 |
Um..... so, which of the three am I supposed to use? I am of being confused? I like the first one, it is easier. :P
Do all three do the same thing? |
|
|
h = Instance.new("Hint") --That creates the Object Hint.
h.Parent = game.Workspace --That parents it to game.Workspace...
h.Text = "YourTextGoesHere!" --That makes the Hint's Text 'YourTextGoesHere!
Thats simple. |
|
zeke505Join Date: 2008-05-26 Post Count: 15765 |
Instance.new("Hint", workspace).Text = "LOLOLOL"
pwn'd |
|
SolotaireJoin Date: 2009-07-30 Post Count: 30356 |
So, it is a one-lined script? |
|
|
|
This will make a message in the bottom of the screen say Hello World!:
while true do
local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Hello World!"
wait(4)
h:Remove()
end |
|
|
No Solotaire not you. You are fine. |
|
ShokwavJoin Date: 2008-08-16 Post Count: 9263 |
@matt: I'll stop arguing, since you've reached a new low that I'm not stooping to. I don't call names; that's childish. Thanks. |
|
|
Lol!
Dude lol, Tools>View>Output
Click play and look in the Output LOL! |
|
SolotaireJoin Date: 2009-07-30 Post Count: 30356 |
Okay, I am just going to try all of them, and then see which one works. |
|
SolotaireJoin Date: 2009-07-30 Post Count: 30356 |
THe first one I tried worked, but I actually want to learn how to script, so I am going to attempt to break it down, and would like it if somebody would tell me if this is right:
while true do -- A scripts default setting is 'true'
local h = Instance.new("Hint") -- This created the item named 'message'.
h.Parent = game.Workspace -- This puts it in the workspace
h.Text = "Welcome to my game!" -- This is what it will say
wait(4) -- No clue on this line?
h:Remove() -- Same as last line, at first I thought it would make it go away after four seconds but that isn't it.
end -- end.
Also, if I wanted to add another message to it, going in a cycle would this work?:
while true do
local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Welcome to my game!"
wait(4)
h:Remove()
h.Text = "Hello!"
loop = true
end
Would I have to copy the script completly, and then make the change? Do I have to add the line after it says wait(4), how do I get it to loop?
Either way, thanks for the help, I know one script, only thousands more to go.:) |
|
|
while true do --As soon as the game starts. Also a loop.
local h = Instance.new("Hint") --Creates a new hint and tags it with the variable h.
h.Parent = game.Workspace --Makes the hints parent Workspace within the game.
h.Text = "Welcome to my game!" --What it says.
wait(4) --How long the hint stays in-game. (In seconds)
h:Remove() --Removes the hint from Workspace.
end --Ends the function.
Second script:
while true do
local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Welcome to my game!"
wait(4)
h.Text = "Hello!"
wait(3)
h:Remove()
end |
|
ShokwavJoin Date: 2008-08-16 Post Count: 9263 |
Technically, it's a loop, not a function. |
|
SolotaireJoin Date: 2009-07-30 Post Count: 30356 |
Thank you.
I think I am going to make a word document that holds all the scripts I learn. |
|
|
@Solotaire
That's a good idea. If you ever need any help, PM me.
@Shokwav
I know. I meant to put:
end --Ends the loop. |
|
SolotaireJoin Date: 2009-07-30 Post Count: 30356 |
@ bonboneater, can I send you a friend request? |
|
|