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

Problem With Line 15?

Omg I asked so many question today but I'm having trouble with Line 15 with this script:

spawn = game.Workspace.HouseArea
player = script.Parent.Parent.Parent.Parent

local funtcion onClicked()
    local spawnArea = game.Workspace.HouseArea;
    local playerList = game.Players:GetChildren()
    local playerToTeleport = nil;

    for key, value in pairs(playerList) do
        playerToTeleport = game.Workspace:FindFirstChild(value.Name);
        if playerToTeleport ~= nill then
            player.Torso.CFrame = CFrame.new(spawnArea.Position);
		end
	end
end
	
   script.Parent.MouseButton1Down:connect(onClicked)

It keeps saying '' expected near 'end' GRRR I could never learn scripting :(

1 answer

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