So I made a fireball/SpiritBomb and when I press "R" to spawn the SpiritBomb, it spawns on my hand but I want it to spawn like 5 studs away from my hand can u pls help me. Thx
local SpiritBomb = game.ServerStorage.EnergyBlasts.SpritBomb:WaitForChild("SpiritBomb")
game.ReplicatedStorage.EnergyBlasts.SpiritBomb.SpirtBombEvent.OnServerEvent:Connect(function(plr)
local character = plr.Character
local SpiritBombClone = SpiritBomb:Clone()
SpiritBombClone.CFrame = character.RightHand.CFrame
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0,false, 1)
local EndInfo = {Size = Vector3.new(10,10,10);}
local SizeTween = TweenService:Create(SpiritBombClone, Info, EndInfo)
SpiritBombClone.Parent = workspace
SizeTween:Play()
SpiritBombClone.Anchored = true
wait(3)
SpiritBombClone.Anchored = false
local bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bodyVelocity.Velocity = (character.RightHand.CFrame.lookVector*120)
bodyVelocity.Parent = SpiritBombClone
wait(5)
SpiritBombClone:Destroy()
end)
