I need help please?
Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
function onActivated()
script.Disabled = true
Player = game.Players:GetPlayerFromCharacter(script.Parent.Parent)
dope = Instance.new("Part")
dope.Parent = Workspace
dope.Anchored = true
dope.Material = "Foil"
dope.Size = Vector3.new(5, 10, 3)
for Camelot = 1,10 do
dope.Size = Wall.Size +Vector3.new(1, 1, 0)
dope.CFrame = Player.Character.Torso.CFrame *CFrame.new(0, 0, -5)
wait(0.1)
end
dope.BrickColor = BrickColor.new("Black")
dope.CFrame = Player.Character.Torso.CFrame CFrame.new(0, 0, -5)
wait(5)
dope.Anchored = false
for Camelot = 1,10 do
dope.Size = Wall.Size -Vector3.new(1, 1, 0)
wait(0.1)
end
dope:remove()
wait()
script.Disabled = false
end
script.Parent.Activated:connect(onActivated)