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

Why is my fake head invisible?

Asked by 9 years ago

So this is a hide name script, but when the fake is invisible in-game, but not in studio. Here is the script:

p = game.Players.LocalPlayer
function blacker()
    script.Parent.TextColor3 = Color3.new(0,0,0)
end
script.Parent.MouseEnter:connect(blacker)

function black()
    script.Parent.TextColor3 = Color3.new(.1,.16,.2)
end
script.Parent.MouseLeave:connect(black)

function onClick()
    if game.Players.LocalPlayer.Character.Head.Transparency == 0 then
    game.Players.LocalPlayer.Character.Head.Transparency = 1
    clone = game.ServerStorage.FakeHead:Clone()
    clone.Parent = game.Players.LocalPlayer.Character
    clone.Transparency = 0
    clone.CFrame = game.Players.LocalPlayer.Character.Head.CFrame
    local weld = Instance.new("Weld")
    weld.Parent = game.Players.LocalPlayer.Character.Head
    weld.Part0 = game.Players.LocalPlayer.Character.Head
    weld.Part1 = game.Players.LocalPlayer.Character.FakeHead
    else
    game.Players.LocalPlayer.Character.Head.Transparency = 0
    clone:Destroy()
    end
end
script.Parent.MouseButton1Click:connect(onClick)

I don't know what is happening, but the output says it's fine.

4
Please do not bash on other users' code... Muoshuu 580 — 9y
2
He down voted everything on me profile... rip Senor_Chung 210 — 9y

Answer this question