-
What do you want to achieve? Keep it simple and clear!
I want to be able to become invisible with a command. -
What is the issue? Include screenshots / videos if possible!
Everytime I join a game with my friend the command just DOES NOT work for me nor him. I’ve checked multiple times and it should’ve worked but it is not. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried looking for solutions but I couldn’t find a post that had an answer.
--[[SERVICES]]--
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
--[[VARIABLES]]--
local Events = ReplicatedStorage.CMDS
Events.InvisibilityEvent.OnServerEvent:Connect(function(Player, Username)
local plr = Players:FindFirstChild(Username)
if plr.Character.Head.Transparency == 1 then
for _,v in plr.Character:GetDescendants() do
if v:IsA("BasePart") then
if v.Name ~= "HumanoidRootPart" then
v.Transparency = 0
end
end
if v:IsA("Decal") then
v.Transparency = 0
end
end
else
for _,v in plr.Character:GetDescendants() do
if v:IsA("BasePart") then
if v.Name ~= "HumanoidRootPart" then
v.Transparency = 1
end
end
if v:IsA("Decal") then
v.Transparency = 1
end
end
end
end)
Please help.