More specifically, if the player uses an fps unlocker, they can shrink the object I am letting them resize instantaneously. I would prefer this be completely client-sided, besides maybe some checks- since this is for a fighting game (and everything besides damage IS client-sided).
No code has been created, I just know from experience that they could resize it as they please.
I was thinking of creating and resizing the part on server, but that’s the very last resort. I’d hate to create an entirely new system for one skill.
i am not sure what this is about, but in my experience of coding, never ever trust the player, do server as much as you can, hacks are 99% coming from the client ruining the events info.
There may be errors, I’m writing this on the fly. But basically, this would be what’s happening on the client.
local resizeCon
local Part = Instance.new("Part")
Part.Parent = workspace
game:GetService("UserInputService").InputBegan:Connect(function(Input,Event)
if Input.KeyCode = Enum.KeyCode.Z and not Event then
resizeCon = game:GetService("RunService").Heartbeat:Connect(function()
Part.Size = Part.Size + Vector3.new(1,1,1)
end)
end
end)
game:GetService("UserInputService").InputEnded:Connect(function(Input,Event)
if Input.KeyCode = Enum.KeyCode.Z and not Event then
resizeCon:Disconnect()
end
end)