#how come do players turn invisible for others but not them when touching this part?

1 messages · Page 1 of 1 (latest)

scarlet cobalt
#

script:

local TeleportPart = game:GetService("Workspace"):WaitForChild("Checkpoints"):WaitForChild("MagmaCheckpoints").MagmaCheckpoint.Base

script.Parent.Touched:Connect(function(hit)
    local hum = hit.Parent:FindFirstChild("Humanoid")
    if hum then
        -- Teleport player
        hit.Parent:MoveTo(TeleportPart.Position + Vector3.new(0,1,0))

        -- Make sure character parts are visible
        for _, part in pairs(hit.Parent:GetChildren()) do
            if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
                part.Transparency = 0
                part.LocalTransparencyModifier = 0 -- just in case
            end
        end
    end
end)

jaunty zenith
#

game:GetService("Workspace") is wild ngl

#

Also, nothing in this is turning the player invisible

signal crownBOT
#

studio** You are now Level 5! **studio

jaunty zenith
#

Though, considering you're talking about the transparency being different for others, I'm assuming you're having trouble with the part.LocalTransparencyModifier

scarlet cobalt
scarlet cobalt
jaunty zenith
#

It works similar to .Transparency, except it overrides it and sets the transparency solely for whichever client it's set with

scarlet cobalt
#

I used chatGPT for this bc I was having trouble with it making players invis, like when players go through it they aren't invis for themselves but invis for others so I asked chat for this code and still does not work

signal crownBOT
#

studio** You are now Level 10! **studio

jaunty zenith
jaunty zenith
#

I did notice this is a teleportation script

scarlet cobalt
scarlet cobalt
jaunty zenith
#

How far is it teleporting

#

oh wait

#

scratch that

#

Well, there's nothing in this script that would be causing them to be invisible

#

I suggest you just search around the scripts in the game and look for something changing the localtransparencymodifiers of the player's parts