Thread: Scriping help
View Single Post
Old 08-15-2018   #5
Bigadre
the fox
 
Bigadre's Avatar
Default

I'm just getting this error now:
WARNING: ./DOWNLOAD/Euphorica.wad|LUA_SPRI:22: ')' expected (to close '(' at line 1) near '<eof>'
Loading main config from ./DOWNLOAD/Euphorica.wad


Code:
addHook("ThinkFrame", function()
	for player in players.iterate do
		if player.mo.skin ~= "euphorica" then
			continue
				end
			
					if not (player.cmd.buttons & BT_CUSTOM1) then
			player.objspawntapready = true
			player.objspawntapping = false
		elseif player.objspawntapready then
			player.objspawntapping = true
			player.objspawntapready = false
		else
			player.objspawntapping = false
		end
 
		if player.objspawntapping then -- New line
			player.spawnedspring = P_SpawnMobj(player.mo.x, -- New line
					player.mo.y, player.mo.z, MT_BLUESPRING)
		end -- New line
	end
end

Last edited by Bigadre; 08-15-2018 at 01:38 PM. Reason: Posting the new Script
Bigadre is offline   Reply With Quote