Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this not work?

This is spozed to make the bilboard gui not seen from 200 studs, but it does not work

`camera = game.Workspace.CurrentCamera
game:GetService("RunService").RenderStepped:connect(function()
    if (camera.CoordinateFrame.p -  game.Players.LocalPlayer.Character.Head .Position).magnitude < 200 then 
         game.Players.LocalPlayer.Character.Head .NameGui.Enabled = true 
    else
         game.Players.LocalPlayer.Character.Head.NameGui.Enabled = false 
    end
end)
`

2 comments

0

Is this running from a LocalScript?

1

On line 1 you have a "`" infront of the value camera? which may be causing it.

1 answer

On line 4 there is a space between ".Head " and ".NameGui"

This discussion is preserved as it was. New answers, comments, and votes are closed.