its a server-sided script in the serverscriptservice. it should create a boolvlaue inside the player and it worked
plr = game.Players:GetPlayerFromCharacter(player)
game.Players.PlayerAdded:Connect(function(player)
local vip = Instance.new("BoolValue")
vip.Parent = player
vip.Name = "vip"
end)
but when i added the if statment it didn't work and there is no errors in the output..
plr = game.Players:GetPlayerFromCharacter(player)
game.Players.PlayerAdded:Connect(function(player)
if player.Name == hmurban then
local vip = Instance.new("BoolValue")
vip.Parent = player
vip.Name = "vip"
end
end)

1 comment
What is player defined as on line 1?