NumberValue problem

yea, the one with nothing on it

btw send ur script

its not doing anything now and look

local UIS = game:GetService(ā€œUserInputServiceā€)
ValueCounter = 0
char = game.Players.LocalPlayer.Character
ClickCounter = 0
UIS.InputBegan:Connect(function(input)

if input.UserInputType == Enum.UserInputType.MouseButton1 then
ClickCounter = ClickCounter + 1
ValueCounter = ValueCounter + 0.01
print(ClickCounter)
game.Players.LocalPlayer.PlayerGui.Clicks.Number.Text = ClickCounter
game.Players.LocalPlayer.CharacterAdded:Connect(function()
char:FindFirstChild(ā€œBallā€).Value = ValueCounter

		end)

end
end)

local UIS = game:GetService(ā€œUserInputServiceā€)
ValueCounter = 0
char = game.Players.LocalPlayer.Character
ClickCounter = 0
UIS.InputBegan:Connect(function(input)

if input.UserInputType == Enum.UserInputType.MouseButton1 then
  ClickCounter = ClickCounter + 1
  ValueCounter = ValueCounter + 0.01
  print(ClickCounter)
  game.Players.LocalPlayer.PlayerGui.Clicks.Number.Text = ClickCounter
  game.Players.LocalPlayer.CharacterAdded:Connect(function()
    char:FindFirstChild(ā€œBallā€).Value = ValueCounter
  end)
end

bruh learn to format ur script XD

alr wait lemme test this rq

its still not updating the value

ik wait that was just me formmating it so i can read it

Just double-checking; if the player clicks on the screen, you want the number to go up?

yes its like a click counter for them

1 Like

bruh the flip is this thing ;-;

game.Players.LocalPlayer.CharacterAdded:Connect(function()
			char:FindFirstChild("Ball").Value = ValueCounter
		end)

im just really tired since its late and im just trying to get this finished im sorry

1 Like

yo so heres a problem: the flip is Ball.Value
Shouldnā€™t it be like Ball.BoolValue or like Ball.IntValue?

oh wait its literally called value ;-;

tell me if its a IntValue or what

well its a NumberValue i dont know the intvalue

bruh send pic of the value in the explorerer (WITH the properties tab)

here

I see.
Unless you plan on having decimals, use an Intvalue instead

i changed it to intvalue still no differenceā€¦ :confused:

ik that was just a side thing

anyways currently tryna figure out why UIS aint workin

everything is working, but the value just dosent wants to be updated

Yea no i found a lot of problems lol
so first of all my mistake, put it under startercharacterscript instead
second paste in this code

print("hi1")
local UIS = game:GetService("UserInputService")
ValueCounter = 0
print("hi")
char = script.Parent
ClickCounter = 0
print(char)
print(UIS)
UIS.InputBegan:Connect(function(input)
	print("e")
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		ClickCounter = ClickCounter + 1
		ValueCounter = ValueCounter + 0.01
		print(ClickCounter)
		char:FindFirstChild("Ball").Value = ValueCounter
	end
end)

now for some reason the UIS aint firing and I have no idea why

Maybe because itā€™s in startercharacter?
Idk Iā€™m just guessing

Pretty sure it should work in startercharacter, I had another project that worked, lemme check that one rq