Hello!
I have made a spell system which is all handled on the client but now I need help moving some of it to the server. For example we have a water move. The controller is made on the client and then handled via remote events; client input which makes hitbox → server. So now to prevent exploiters I want the server to validate if the client actually owns this spell. But the problem is that this move controller is solely handled on the client and im not sure on what to do.
Im just looking for a couple ideas on how I could continue structuring my framework or if i need to completely change my approach, anything would be helpful at this point.
example:
local Water = {}
Water.__index = Water
function Water.new()
local self = {}
self.cd = 10
self.dmg = 100
self:init()
end)
function self:activate()
--create hitbox and fire server
end)
function Water:init()
UIS.InputBegan:Connect(function(input)
if input.Keycode ~= Enum.Keycode.Q then
return
end
self:activate
end)
end)
The .new function would be called from a separate local script which is where my problem arises