|
Truthfully I am making a troll script. It is not to be used anywhere except for one of my places. It is supposed to make it harder to play.
Here's the script, tell me any errors I'd need to fix
local a = print 'Hello world!'
local b = game.workspace
repeat
wait(5)
local a2 = clone(a)
remove(a)
wait(5)
local a = clone(a2)
wait(5)
until
b.terrain = nil
end)
b.terrain = nil says unexpected symbol near '=' |
|
|
Bump? Please, I need some help with this! |
|
|
maybe no space or put quotes? |
|
|
I see a few errors:
local a = 'Hello world!'
local b = game.workspace
repeat
wait(5)
local a2 = a:clone()
remove(a)
wait(5)
local a = a2:clone()
wait(5)
until
b.Terrain = nil
end) |
|
|
Alright, thanks!
Fixed some other errors I'd made though
local a = 'Hello world!'
local b = game.workspace
repeat
wait(5)
local a2 = a:clone()
remove(a)
wait(5)
local a = a2:clone()
remove(a2)
until
b.Terrain = nil
end) |
|
|
Okay, I just tried my edited script and it didn't work |
|
|
local a = 'Hello world!'
local b = game.workspace
repeat
wait(5)
local a2 = a:clone()
remove(a)
wait(5)
local a = a2:clone()
remove(a2)
until
b.Terrain == nil
end) |
|
|
Capitalization counts! :
local b = game.Workspace |
|
|
You don't need to capitalize workspace. Please don't give false info :( |
|
|
|
Cloning a string, not gonna work.
The Clone() method is for Instances: http://wiki.roblox.com/index.php?title=API:Instance/Clone
this is a signature: pcall(function() print([[apparently this is a string]]) end) |
|
|
Okay, I know it's for instances.
I meant to put on the first line
a = instance.new("Message", game.workspace)
a.Text = {"Hello World!"}
And then for clone
local a2 = clone(a)
Do you get it now? I reviewed my previous messages and realized a few errors |
|
|
Well you can't make a string property become an array. c:
a.Text = "Hello World!"
Also, he said capitalization counts, and it does.
I don't care if it isn't required, it is good practice, as most of the Roblox Lua things use upper camel case. Even without that, it is still good practice. |
|
|
For using the Clone method, you do it like this:
local a2 = a:Clone() |
|
jd678Join Date: 2008-04-18 Post Count: 11529 |
No you don't lol
game.workspace
part:clone()
sound:play()
Don't need caps |
|
|
"No you don't lol
game.workspace
part:clone()
sound:play()
Don't need caps"
What the heck?
I never mentioned sound at all, and never mentioned a "part" (also known as a new block) so your whole statement is rendered incorrect. |
|