This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |