I tried to make it FE like normally but it just didn't work maybe I made a stupid mistake? my original version is here:
local ContextActionService = game:GetService("ContextActionService")
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local debounce = false
local function pressedXHandler()
if debounce then return end
debounce = true
local hitCharacter = mouse.Target.Parent
local hitHumanoid = hitCharacter:FindFirstChildWhichIsA("Humanoid")
if hitHumanoid then
hitHumanoid:TakeDamage(25)
hitCharacter.Humanoid.Sit = true
local Push = Instance.new("BodyVelocity", hitCharacter.Torso)
Push.Velocity = hitCharacter.Torso.CFrame.lookVector * -63
Push.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
local Distance = Instance.new("BodyPosition", hitCharacter.Torso)
Distance.MaxForce = Vector3.new(0, 0, 2)
Distance.Position = Vector3.new(0, hitCharacter.CFrame.p.Y + 15, 0)
Push:Destroy()
Distance:Destroy()
wait(5)
hitCharacter.Humanoid.Sit = false
end
wait(20)
debounce = false
end
ContextActionService:BindAction("nameOfAction", pressedXHandler, false, Enum.KeyCode.X)

2 comments
What is the problem you're having? We need more context to "make it FE." Working with FE means it complies with the client-server model where neither the players nor the server attempt to directly modify each other. Please provide more information than just saying it doesn't work and posting all of the code.
well just the script doesnt work when its not made FE