I need a script that when u touch a block all players go invisible but urself I tried searching it up and it only shows GUI buttons for this
local Cooldown = .25
local function Visiblity(Player, Visible)
if Visible then
-- Show
else
-- Hide
end
end
local CD = false
script.Parent.Touched:Connect(function(hit)
if CD then return end
CD = true
local TPlayer = game.Players:GetPlayerFromCharacter(hit.Parent)
if not TPlayer then return end
for i, Player in pairs(game.Players:GetPlayers()) do
if Player == TPlayer then Visibility(TPlayer, true) continue end
Visibility(Player, false)
end
wait(Cooldown)
CD = false
end)
1 Like
Visibility goes red also am I supposed to put this somewhere specific
I mean underlined red in script that’s what i meant
Its a typo in the function name, find it and fix it
you will also need to finish the function, it is blank
I got it now thanks for the help