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

this is annoying me please help me im getting mad and tell me wut i did wrong no lectures pls?

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

0

You called kills Exp

0

Can you post full script and error please.

0

To reference your "kills" variable, it would work, game:GetService("Players"):FindFirstChild("MrLonely1221"):WaitForChild("leaderstats"):FindFirstChild("Exp")

2 answers

✓ Accepted answer

You are naming kills Exp on line 6 of the first script

kills.Name = "Exp"

Don't forget to mark my answer as the solution and upvote it if it solved the problem :)

2 comments

0

oh lol i didnt notice that but u know whats wrong with the billboardgui thing?

0

i managed to fix the B gui on my own thanks so much for pointing my dumb mistake doe XD

You are creating an IntValue for leaderstats. It has to be a Folder instance if you want it to show up. Change IntValue to Folder.

3 comments

0

you don't

0

it can be anything

0

^

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