
KeylessUniversal

local function onTouch(touch)
local player = game.Players:GetPlayerFromCharacter(touch.Parent)
if player then
local force = 100
local direction = (touch.Parent.PrimaryPart.Position - player.Character.Torso.Position).Unit * force
player.Character.HumanoidRootPart.Velocity = direction
end
end
game.Workspace.DescendantAdded:Connect(function(descendant)
if descendant:IsA("Part") then
descendant.Touched:Connect(onTouch)
end
end)No comments yet for this script.



