Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function onTouched (hit)
- local dir = script.Parent.Parent.Parent
- local lev = script.Parent.Parent
- if dir.pos.Value == 1 then
- dir.pos.Value = 2
- dir.Signal.Engine.BodyVelocity.velocity = Vector3.new(0,-5,0)
- lev.sigoff.p1.Transparency = 1
- lev.sigoff.p2.Transparency = 1
- lev.sigon.p1.Transparency = 0
- lev.sigon.p2.Transparency = 0
- else
- dir.pos.Value = 1
- dir.Signal.Engine.BodyVelocity.velocity = Vector3.new(0,5000,0)
- lev.sigoff.p1.Transparency = 0
- lev.sigoff.p2.Transparency = 0
- lev.sigon.p1.Transparency = 1
- lev.sigon.p2.Transparency = 1
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement