Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is wrong with this script?

wait(3) local p = Instance.new("Part") p.Parent = game.Workspace p.Position = Vector3.new(-24.436, 0.5, 31.759) --Change the numbers to change the local of the platform. p.Size = Vector3.new(25, 25, 25) --Change the numbers to change the size from it. p.BrickColor = BrickColor.new(1) --Look at the wiki and Scripting Help, the first option on the page and look for Pallete Colors to Numbers. p.Locked = true p.Anchored = false wait(7) p:remove() end

3 comments

0

Put it in a code block

0

Please put it in a code block. Also, tell us what you are trying to do. If you put it in a code block we can explain it better.

0

I've "decoded" his message below. How'd I do?

1 answer

Well once I cleaned everything up, it looked like this:

wait(3) 
local p = Instance.new("Part") 
p.Parent = game.Workspace
p.Position = Vector3.new(-24.436, 0.5, 31.759) --Change the numbers to change the local of the platform. 
p.Size = Vector3.new(25, 25, 25) --Change the numbers to change the size from it. 
p.BrickColor = BrickColor.new(1) --Look at the wiki and Scripting Help, the first option on the page and look for Palette Colors to Numbers. 
p.Locked = true 
p.Anchored = false 
wait(7) 
p:remove() 
end --remove this end

One of the obvious problems is there's an extra end where there shouldn't be. unless there was a coping and pasting error, there's nothing else wrong with the script. If you are looking to do something else with the script, and it's not working the way you want it to: PUT IT INTO A CODE BLOCK. Give a more detailed explanation for what your doing. Links are below:

LINKS:

Roblox Wiki: http://wiki.roblox.com/index.php/Scripting

Roblox Forum: http://forum.roblox.com/Forum/default.aspx

Community Guidelines: https://scriptinghelpers.org/help/community-guidelines

This discussion is preserved as it was. New answers, comments, and votes are closed.