Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Any way to make this work?

Asked by 10 years ago

game.Workspace.Player.Head.Transparency = 1

1 answer

Log in to vote
-1
Answered by 10 years ago

You wasn't SPECIFIC so it doesn't A) Make their heads permanently transparent B) Fires only when you use _G.NoHeadPlayers() in ANY script C) Doesn't work as soon as you join because the game objects are still loading D) Does it to ALL players

_G["NoHeadPlayers"] = function()
    for i, v in pairs(game.Players:GetPlayers()) do
        local head = v.Character:findFirstChild("Head")
        if head then
            head.Transparency = 1
        end
        wait()
    end
end

-- USE    _G.NoHeadPlayers() IN ANY SCRIPT TO CALL THE FUNCTION
0
All players TheMrjohnALT 0 — 10y
0
do you want it to be like permanent or something? TochiWasHere 10 — 10y
0
be SPECIFIC of when you want it to fire TochiWasHere 10 — 10y
0
To make everyone's head invisible. TheMrjohnALT 0 — 10y
0
Remember, if this is a normal (server) script, you won't be able to fire it from a LocalScript. Global Values work on both script types, but you can't manipulate one from the other. hiccup111 231 — 10y
Ad

Answer this question