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

Disappearing Part Without Reason. why this is happening?

Asked by 7 years ago

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

Log in to vote
0
Answered by 7 years ago

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.
0
oh,thanks herickman 2 — 7y
Ad

Answer this question