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

Why wont this work?

This doesn't insert the boolvalue into the character when they join, what's wrong?

char = script.Parent.Parent.Parent.Parent.Character
game.Players.PlayerAdded:connect(function(player)
Instance.new(("BoolValue"),script.Parent.Parent.Parent.Parent.Character)
script.Parent.Parent.Parent.Parent.Character.Value.Name = "AFK"
end)

It's 11PM excuse me if I don't explain crap right

2 answers

game.Players.PlayerAdded:connect(function(player)
local afk=Instance.new("BoolValue")
afk.Parent=player
afk.Name="AFK"
end)

Your doing it the other way, how alot of people just got it from teleport GUI models or something. Insert in with the value.Parent equal the player. That was a easy error, but I hope this helps.

--Because you have that function, you'd use "player" instead.
valuename.Parent = player

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