here's a script: local pad = script.Parent ----- 1st column local invisibilityDuration = 5 local function makePlayerInvisible(character) for _, part in ipairs(character:GetChildren()) do if (part:IsA("BasePart") or part:IsA("MeshPart")) and part.Name ~= "HumanoidRootPart" then part.Transparency = 1 if part:FindFirstChild("face") then part.face.Transparency = 1 end elseif part:IsA("Accessory") then if part:FindFirstChild("Handle") then part.Handle.Transparency = 1 end end end end local function makePlayerVisible(character) -------- 2nd column for _, part in ipairs(character:GetChildren()) do if (part:IsA("BasePart") or part:IsA("MeshPart")) and part.Name ~= "HumanoidRootPart" then part.Transparency = 0 if part:FindFirstChild("face") then part.face.Transparency = 0 end elseif part:IsA("Accessory") then if part:FindFirstChild("Handle") then part.Handle.Transparency = 0 end end end end local function onTouch(otherPart) ------ 3nd column local character = otherPart.Parent local player = game.Players:GetPlayerFromCharacter(character)
if player then makePlayerInvisible(character)
task.delay(invisibilityDuration, function() makePlayerVisible(character) end) end end pad.Touched:Connect(onTouch) ------------------------------------------- if you want to make you become invisible on forever then delete 2nd column in the script.
hey can you explain to me how to RTS invisible range distance work (Because in an RTS game, at a certain distance from the played units, every type of enemy unit disappears and I wanted to know how this works)
You would have to do make that local: local Player = game.Players.LocalPlayer for _, USER in pairs(game.Players:GetPlayers()) do if USER ~= Player and USER.Character then for _, inSideChar in pairs(USER.Character:GetChildren()) do
if inSideChar:IsA("BasePart") or inSideChar:IsA("MeshPart") then inSideChar.Transparency = 1
local face = inSideChar:FindFirstChild("face") if face then face.Transparency = 1 end elseif inSideChar:IsA("Accessory") then
local handle = inSideChar:FindFirstChild("Handle") if handle then handle.Transparency = 1 end end end end end
This is my opinion but, I think you should change the title or maybe the thumbnail because I thought it's some sort of hacks or secret psychology tricks that only applies to robloxian
the thumbnail is a masterpiece
your webcam thing is so terrifying when I saw it I literally jumped back because i wasn't expecting it
here's a script:
local pad = script.Parent ----- 1st column
local invisibilityDuration = 5
local function makePlayerInvisible(character)
for _, part in ipairs(character:GetChildren()) do
if (part:IsA("BasePart") or part:IsA("MeshPart")) and part.Name ~= "HumanoidRootPart" then
part.Transparency = 1
if part:FindFirstChild("face") then
part.face.Transparency = 1
end
elseif part:IsA("Accessory") then
if part:FindFirstChild("Handle") then
part.Handle.Transparency = 1
end
end
end
end
local function makePlayerVisible(character) -------- 2nd column
for _, part in ipairs(character:GetChildren()) do
if (part:IsA("BasePart") or part:IsA("MeshPart")) and part.Name ~= "HumanoidRootPart" then
part.Transparency = 0
if part:FindFirstChild("face") then
part.face.Transparency = 0
end
elseif part:IsA("Accessory") then
if part:FindFirstChild("Handle") then
part.Handle.Transparency = 0
end
end
end
end
local function onTouch(otherPart) ------ 3nd column
local character = otherPart.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player then
makePlayerInvisible(character)
task.delay(invisibilityDuration, function()
makePlayerVisible(character)
end)
end
end
pad.Touched:Connect(onTouch)
-------------------------------------------
if you want to make you become invisible on forever then delete 2nd column in the script.
Thank you
@chrisjunior1508 No problem!
What is a 1th?
@@Gkidz-123 oops, I mean 1st
hey can you explain to me how to RTS invisible range distance work (Because in an RTS game, at a certain distance from the played units, every type of enemy unit disappears and I wanted to know how this works)
I can make it so i can see myself by using a client script after the server script makes me invisible right?
Yes, I don’t see why not!
how do I make all the players invisible for everyone except their own character? (others players won't see it)
You would have to do make that local:
local Player = game.Players.LocalPlayer
for _, USER in pairs(game.Players:GetPlayers()) do
if USER ~= Player and USER.Character then
for _, inSideChar in pairs(USER.Character:GetChildren()) do
if inSideChar:IsA("BasePart") or inSideChar:IsA("MeshPart") then
inSideChar.Transparency = 1
local face = inSideChar:FindFirstChild("face")
if face then
face.Transparency = 1
end
elseif inSideChar:IsA("Accessory") then
local handle = inSideChar:FindFirstChild("Handle")
if handle then
handle.Transparency = 1
end
end
end
end
end
This is my opinion but, I think you should change the title or maybe the thumbnail because I thought it's some sort of hacks or secret psychology tricks that only applies to robloxian
did u not read the title?