CFrame script not functioning, no errors?
So I'm trying to make a model with a primary part slide up and down on every click (Up on click one, Down on click two), but when I click it. Bam, nothing! Nor no errors.
02 | if (script.Parent.Status.Value) = = "Closed" then |
03 | script.Parent.Status.Value = "Opening" |
08 | script.Parent.PLT:SetPrimaryPartCFrame(script.Parent.PLT.PrimaryPart.CFrame + Vector 3. new( 0 ,speed, 0 )) |
10 | script.Parent.Status.Value = "Open" |
12 | elseif (script.Parent.Status.Value) = = "Open" then |
13 | script.Parent.Status.Value = "Closing" |
18 | script.Parent.PLT:SetPrimaryPartCFrame(script.Parent.PLT.PrimaryPart.CFrame + Vector 3. new( 0 ,-speed, 0 )) |
20 | script.Parent.Status.Value = "Closed" |
23 | script.Parent.PLT.ClickDetector.MouseClick:connect(click) |