Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- Player = game.Players.LocalPlayer
- Character = Player.Character
- Head = Character:WaitForChild("Head")
- Torso = Character:WaitForChild("Torso")
- LLeg = Character:WaitForChild("Left Leg")
- RLeg = Character:WaitForChild("Right Leg")
- LArm = Character:WaitForChild("Left Arm")
- RArm = Character:WaitForChild("Right Arm")
- Face = Head:FindFirstChild("face")
- FaceTexture = Face.Texture
- ScreenGui = Instance.new("ScreenGui",Player.PlayerGui)
- Toggle = Instance.new("TextButton",ScreenGui)
- Toggle.Text = "Turn Invisible"
- function click()
- if Toggle.Text == "Turn Invisible" then
- for i = 0,1,0.2 do
- Head.Transparency = i
- Torso.Transparency = i
- LLeg.Transparency = i
- RLeg.Transparency = i
- LArm.Transparency = i
- RArm.Transparency = i
- Face.Texture = " "
- wait()
- Toggle.Text = "Turn Visible"
- end
- elseif Toggle.Text == "Turn Visible" then
- for k = 1,0,-0.2 do
- Head.Transparency = k
- Torso.Transparency = k
- LLeg.Transparency = k
- RLeg.Transparency = k
- LArm.Transparency = k
- RArm.Transparency = k
- Face.Texture = FaceTexture
- wait()
- Toggle.Text = "Turn Invisible"
- end
- end
- end
- Toggle.MouseButton1Click:connect(click)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement