Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mod = script.Parent.Parent.Parent
- script.Parent.FloaterSwitch.MouseButton1Click:connect(function()
- for _,v in pairs(mod:GetChildren()) do
- if v.Name == 'Floater' or v.Name == 'FloaterLeg' then
- if v.Transparency == 0 then
- v.Transparency = 1
- v.CanCollide = false
- elseif v.Transparency == 1 then
- v.Transparency = 0
- v.CanCollide = true
- end
- elseif v.Name == 'Floater' then
- if v.Transparency == 0 then
- v.BodyForce.Force = 0,0,0
- v.Material = 'Wood'
- elseif v.Transparency == 1 then
- v.BodyForce.Force = 0,2650,0
- v.Material = 'SmoothPlastic'
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement