dont wait for child the character is not a child of player i dont think
actually try it althought I dont think itll work
dont wait for child the character is not a child of player i dont think
actually try it althought I dont think itll work
yea it dosent work but now after i added the print line the output has changed saying this
attempt to index nil with ‘FindFirstChild’
oh hey ez solve just add a wait() infront of everything
might not work but should work
AHA use player.CharacterAdded, do some research on it should work
wait() dosent work but i will try character added
specifically look at how they did this code here: Best way to Wait() for Character? - #18 by sas_rbx
it solved the error but it wont update the value
weird, send ur current code (also where did u put it, and oh wait OHHH)
bruh use a serverscript XDDD
server script?? in starterplayerscripts??
yea, theres nothing wrong with that (not to my knowlegde)
it wont do anything now
wait maybe im doing something wrong, serverscript is basic one right?
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
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