Hello, How do I fix my script? I made a script where if you press "r" it would add increase a value by one (it is an intvalue by the way) so in the script it would do if the value were 1 then a part will become transparent but it doesn't exactly seem to work
local camera = game.Workspace.VehicleSeat
local value = camera.Value.Value
if value == 1 then do
game.Workspace.p1.Transparency = 1
wait(1)
end
end

1 comment
wow thanks