Tim Seguine
0
Q:

- Workspace.Arrow.GettingStands:24: Expected 'then' when parsing if statement, got <eof>

local Clickdetector = game.Workspace.Arrow.ClickDetector
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StandsInGeneral = ReplicatedStorage:WaitForChild("StandsInGeneral")
local RarityChances = require(ReplicatedStorage:WaitForChild("RarityChances"))

if Clickdetector.MouseClick:connect(function(player)
		local StandNumber = math.random (1,100)
		local StandFound = false 
		local Stand = nil
		while StandFound == false do
			for i, v in pairs (RarityChances.StandsInGeneral) do
				if StandNumber < 50 then 
				StandFound = true 
					Stand = "Star Platinum"
					print ("Wow you got Star Platinum !")
				elseif StandNumber > 50 then
					StandFound = true
					Stand = "The World"
					print "Wow you got The World !"
			          else
end
end		  
end	
end)		
0

New to Communities?

Join the community