Tower defense game preventing exploiters from abusing placements

so i’m making a tower defense game i got some crazy ideas in my head and i need to get them out
anyways im handling tower placement right now and theres a problem

on the client i have this line
TowerEvent:FireServer(self.Model, self:GetUniqueName(), finalPosition)
see the problem with this is that i pass through the position and exploiters can abuse this really really easily…so how would i get around this?

let me know if more context is needed

2 Likes

anyone?
characterssssssssssssssss

1 Like

Check on server where you can place units and where not. Literally copy-paste system for verification from client to server.

enter: CFrame.new(0,5,0)
since maps would have a lot of verticality it would be hard to make some sort of check for that

Bro. Have you did unit placement on client? If no then go work. If yes, just copypaste code.

1 Like

Very few details given here. You are firing the position of where the tower is to be placed to the server, correct? How could this be abused? The only problem would be placing towers out of bounds or on the road area where enemys come through, so you would have a check to make sure the requested position doesn’t align with the road or is out of bounds, could use ZonePlus for example

1 Like

forgot to update this but after a long day of headaches from playing a stupid game i came back and realized its two height checks for below and above where all towers would be placed so its already fixed
thanks for the help anyway

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.