Need more activness!
1 2 3 4

Wednesday, June 29, 2011

Scripting Help 6/29/11

Dear Doogy700,

The following script would be the output of something, yet it doesn't work correctly, please help me.

Workspace.SpawnBox.Cancollides.SpawnLocation.Script:1: 'then' expected near '='
Script:
if game.Workspace.Message.Text="Lets start"
then script.Parent.Cancollide=false 
wait(5)
script.Parent.Cancollide=true 




-ineedhelpwithscripting

Dear ineedhelpwithscripting,

It doesn't work because you have a word on the wrong line, here is the correct script:

Workspace.SpawnBox.Cancollides.SpawnLocation.Script:1: 'then' expected near '='
Script:
if game.Workspace.Message.Text="Lets start" then
script.Parent.Cancollide=false 
wait(5)
script.Parent.Cancollide=true 

Why? Because = is used to set a variable

x = 5
t = "lol hai"

== is used to compare two things.

if x == 5 then
elseif t == "lol hai" then

I hope you understand.
-

No comments:

Post a Comment