Here when i use the move i want it to get knocked back and ragdoll
https://gyazo.com/acf350d1874168447515c083d7a8d832
and second question how can i make it shrin or grow bigger
heres the script, its not local its normal script
local rp = game:GetService("ReplicatedStorage")
local SBomb = rp:WaitForChild("SBomb")
local Debris = game:GetService("Debris")
SBomb.OnServerEvent:Connect(function(Player)
local Character = Player.Character
local Humanoid = Character:WaitForChild("Humanoid")
--Here you can Add animations
local Firing = Humanoid:LoadAnimation(script.Anim)
Firing:Play()
wait(0.7)
local SpiritBomb = script.SpiritBomb:Clone()
SpiritBomb.CFrame = Character:WaitForChild("UpperTorso").CFrame
SpiritBomb.Orientation = Character:WaitForChild("HumanoidRootPart").Orientation
SpiritBomb.Parent = workspace
Debris:AddItem(SpiritBomb,1)--How long until it disappears
local Vel = Instance.new("BodyVelocity",SpiritBomb)
Vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
Vel.Velocity = Character:WaitForChild("HumanoidRootPart").CFrame.lookVector * 0
SpiritBomb.Touched:Connect(function(Hit)
if not Hit:IsDescendantOf(Character) then
if Hit:IsA("Part") or Hit:IsA("MeshPart") then
local Humanoid = Hit.Parent:FindFirstChild("Humanoid")
if Humanoid then
wait(1)
SpiritBomb:Destroy()
Humanoid:TakeDamage(1)
end
end
end
end)
SBomb:FireClient(Player)
end)

1 comment
You need a BodyForce