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

Why does this not work?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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)
`
0
Is this running from a LocalScript? BlueTaslem 18071 — 9y
1
On line 1 you have a "`" infront of the value camera? which may be causing it. xImmortalChaos 565 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

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

Ad

Answer this question