script.Parent.MouseButton1Click:connect(function(click) game.Workspace.cookies.Value = game.Workspace.cookies.Value + 1 rambodoge = math.ceil(math.random(0, 5)) if rambodoge == 1 then plusone = game.ServerStorage.plusone:Clone() plusone.Parent = script.Parent.Parent.Parent:FindFirstChild("PointPopup") elseif rambodoge == 2 then plustwo = game.ServerStorage.plustwo:Clone() plustwo.Parent = script.Parent.Parent.Parent:FindFirstChild("PointPopup") elseif rambodoge >= 3 then plusthree = game.ServerStorage.plusthree:Clone() plusthree.Parent = script.Parent.Parent.Parent:FindFirstChild("PointPopup") end end)
Idk why but its an error at line 11 the output does not help.
script.Parent.MouseButton1Click:connect(function(click) for i = 1,1 do game.Workspace.cookies.Value = game.Workspace.cookies.Value + 1 end rambodoge = math.ceil(math.random(0, 5)) if rambodoge == 1 then game.Lighting.plusone:Clone().Parent = script.Parent.Parent.Parent:FindFirstChild("PointPopup") elseif rambodoge == 2 then game.Lighting.plustwo:Clone().Parent = script.Parent.Parent.Parent:FindFirstChild("PointPopup") elseif rambodoge == 3 then game.Lighting.plusthree:Clone().Parent= script.Parent.Parent.Parent:FindFirstChild("PointPopup") -- There is a limit on how many times you can use a clone and I just fixed it? end end)
Try this..Also move everything to lighting.
+1 if this helped :P
What are the plus(x) variables? Parts?