Script:
click = 0 local plr = game,Players.LocalPlayer while wait()do if click == plr.leaderstats.Crowns,Value then local random = math.random(1,1000) local xnew = Random/1000 local new = game.ReplicatedStorage.ClickingEffect:Clone() new.Parent = script.Parent new.TextBox.Position = UDim2.new(xnew,0,1,0) click = plr.leaderstats.Crowns.Value end end
click = 0 local plr = game while wait() do if click == plr.leaderstats.Crowns then local random = math.random(1, 1000) local xnew = random / 1000 local new = game.ReplicatedStorage.ClickingEffect:Clone() new.Parent = script.Parent new.TextBox.Position = UDim2.new(xnew, 0, 1, 0) click = plr.leaderstats.Crowns.Value end end
this work yes
You used "," instead of "." so uh ye, here is the fix i guess:
click = 0 local plr = game.Players.LocalPlayer while wait() do if click == plr.leaderstats.Crowns.Value then local random = math.random(1,1000) local xnew = Random/1000 local new = game.ReplicatedStorage.ClickingEffect:Clone() new.Parent = script.Parent new.TextBox.Position = UDim2.new(xnew,0,1,0) click = plr.leaderstats.Crowns.Value end end