Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Invisibility Script by Phoenix
- print("Invisable script loaded by Phoenix")
- -- Check the render pipeline version
- local renderPipelineVersion = game:GetService("ServerScriptService"):WaitForChild("RenderPipeline"):GetProperty("RenderPipelineVersion")
- local isR6 = renderPipelineVersion == "6"
- -- Toggle transparency on the player's character
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local meshParts = {}
- for _, part in ipairs(character:GetDescendants()) do
- if part:IsA("BasePart") and not part:IsA("Humanoid") then
- table.insert(meshParts, part)
- end
- end
- for _, part in ipairs(meshParts) do
- part.Transparency = isR6 and 1 or 0.8
- end
- print("Invisibility enabled")
Advertisement
Add Comment
Please, Sign In to add comment