Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

What is wrong with this script?

Asked by 8 years ago

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

0
Put it in a code block tkddude2 75 — 8y
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. iSvenDerp 233 — 8y
0
I've "decoded" his message below. How'd I do? LateralLace 297 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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

Ad

Answer this question