Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can anyone help me make this tiny script FE, tried a few things but didn't work?

Asked by 5 years ago
Edited 5 years ago

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)
0
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. vanilla_wizard 336 — 5y
0
well just the script doesnt work when its not made FE 3dwardIsBack -10 — 5y

Answer this question