Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Workspace.Essential Scripts.Checkpoint Script:17: Expected ')' (to close '(' at line 16), got 'end'?

Hello, I'm not sure how to resolve this error. I've been trying for some time, is there something wrong with the script?

Thanks, Azure.

local Players = game:GetService("Players")
	 
	Players.PlayerAdded:Connect(function(Player)
	    local Leaderstats = Instance.new("Folder")
	    Leaderstats.Name = "leaderstats"
	    Leaderstats.Parent = Player
	    local Stage = Instance.new("IntValue")
	    Stage.Name = "Stage"
	    Stage.Value = 1
	    Stage.Parent = Leaderstats
	    Player.CharacterAdded:Connect(function(Characer)
	        local Leaderstats = Player:FindFirstChild("leaderstats")
	        if (Leaderstats and Leaderstats.Stage) then
	            local Stage = workspace:FindFirstChild(tostring(Stage.Value))
	            if (Stage) then
	                Character:MoveTo(Stage.Position + Vector3.new(0,3,0)
	            end
	        end
	    end)
	end)

1 answer

✓ Accepted answer

add ) at the end of line 16 lol

This discussion is preserved as it was. New answers, comments, and votes are closed.