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

Disappearing Part Without Reason. why this is happening?

I am having a problem when I start the game the part simply falls from the scenario and disappears whitout reason,here's the script

P = Instance.new("Part", game.workspace)
P.BrickColor = BrickColor.new(5)
P.Transparency = 0
P.Name = "Test Block"
P.Position = Vector3.new(0, 15, 0)
P.Anchored = True
P.CanCollide = True
P.Locked = False
P.Size = Vector3.new(5, 5, 5)

why this is happening??

1 answer

✓ Accepted answer

Lua is case sensitive.

It's true and false not True and False,

P = Instance.new("Part", game.workspace)
P.BrickColor = BrickColor.new(5)
P.Transparency = 0
P.Name = "Test Block"
P.Position = Vector3.new(0, 15, 0)
P.Anchored = true
P.CanCollide = true
P.Locked = false
P.Size = Vector3.new(5, 5, 5)

Good Luck!

If I helped, please don't forget to accept my answer.

1 comment

0

oh,thanks

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