Skip to content

Instantly share code, notes, and snippets.

local functions = require(game.ServerScriptService.serverhandler.functions) or require(script.Parent.Parent.functions)
local rs = game:GetService("RunService")
local ts = game:GetService("TweenService")
local rparams = RaycastParams.new()
rparams.FilterType = Enum.RaycastFilterType.Include
rparams.FilterDescendantsInstances = {workspace.Map}
local function applyKnockback(targetCharacter, originPosition, force)
local hrp = targetCharacter:FindFirstChild("HumanoidRootPart")
if not hrp then return end