Hello, Helper why is this script not working I try everything and didn't work
while true do
wait (10)
local model = game.Workspace.Tree:Clone()
model.Parent = game.Workspace
wait(10)
end
game3000 = game.Workspace.Tree
script.Parent.ClickDetector.MouseClick:connect(function()
local scr = Instance.new ("ScreenGui", game.Players.LocalPlayer.PlayerGui)
local txt = Instance.new ("TextLabel",scr) -- Textlabel goes inside the ScreenGui so you can see it
txt.Text = ("Timber") -- Update the text.
txt.Size = UDim2.new(0,200,0,100) -- Size of the text label.
txt.Position= UDim2.new(0.5,0,0.5,0) -- Position of the text label.
wait(1)
scr:Destroy() -- Destroy the screengui!
wait (1)
game3000:remove()
end)
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Model")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local taps = Instance.new("IntValue")
taps.Name = "Cash"
taps.Value = 0
taps.Parent = leaderstats
end)
script.Parent.ClickDetector.MouseClick:connect(function()
for _,Player in pairs(game.Players:GetPlayers()) do
if Player:FindFirstChild("leaderstats") then
Player.leaderstats.Taps.Value = Player.leaderstats.Taps.Value +1
end
end
end)
btw it didn't say anything in the output I added a Watch on it and it says Tree script Error symbol "Tree script" not found

4 comments
What line is the problem on? We'd be happy to assist you if you provided more information on the issue.
I agree.
idk witch line it just says this Tree script Error symbol "Tree script" not found and also the screen gui isn't working same with the money
The infinite loop at the top stops any of the code after it from ever running. It should go somewhere else.