this is extremely annoying ... i made this leaderstats script and another script that increments its value when a event is played but i keep getting this error "kills is not a valid member of IntValue" BUT IT IS THIS IS JUST LOOK AT DE SCRIPT
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("IntValue",player)
leaderstats.Name = "leaderstats"
local kills = Instance.new("IntValue",leaderstats)
kills.Name = "Exp"
kills.Value = 0
end)
HALP MEH DIS VERY ANNOYING also i added this billboard to appear everytime the event activates but i dont think im making the instances the right way i mean event connects but the instanc i dont think right can check?
local Bill = Instance.new("BillboardGui")
Bill.AlwaysOnTop = true
Bill.Active = true
Bill.Enabled = true
Bill.Parent = plr.Character.Head -- the plr is from the event connection cant tell u that incase u try exploit meh
local Text = Instance.new("TextLabel")
Text.Text = "+1"
Text.TextSize = 25
Text.TextColor3 = Color3.fromRGB(0,100,0)
Text.Parent = Bill
wait (0.5)
Bill:Destroy()
end)
plz help

3 comments
You called kills Exp
Can you post full script and error please.
To reference your "kills" variable, it would work, game:GetService("Players"):FindFirstChild("MrLonely1221"):WaitForChild("leaderstats"):FindFirstChild("Exp")