It says this error everytime i try to run my script i tried changing the position of end and it didnt seem to help. Here's the script:
local rs = game.ReplicatedStorage local FireBlast = rs.FireBlast local blast = rs.blast
local tweenService = game:GetService("TweenService")
local function blastFired(player)
local char = player.Character or player.Character:Wait()
local rootPart = char.HumanoidRootPart
local clone = blast:Clone()
clone.Parent = game.Workspace
clone.Position = rootPart.CFrame.LookVector.unit*6 + rootPart.Position
local function blast_start()
local info = TweenInfo.new(1, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false, 0)
local goals = {
Size = Vector3.new(5.4,5.4,5.4);
Transparency = 0;
}
local startupTween = tweenService:Create(clone, info, goals)
startupTween:Play()
local function shootBlast()
local info = TweenInfo.new(0.5, Enum.EasingStyle.Quart, Enum.EasingDirection.In, 0, false, 0)
local goals = {
CFrame = CFrame.new(rootPart.Position + rootPart.CFrame.LookVector.unit*200)
}
local shootTween = tweenService:Create(clone, info, goals)
shootTween:Play()
end
clone.Anchored = true
blast_start()
task.wait(1)
clone.Anchored = false
shootBlast()
end
FireBlast.OnServerEvent:Connect(blastFire)
