not sure if the title made much sense but I don’t really know how else I could put it. so, in my game, the players can press b to create a burst (which will eventually cause damage) and the burst is literally just a sphere part, but when I try to do it twice, it doesn’t let me and it gives me this error.
the error:
the script
local UIS = game:GetService("UserInputService")
local TS = game:GetService("TweenService")
local burst = Instance.new("Part")
local player = game.Players.LocalPlayer
local character = player.Character
UIS.InputBegan:Connect(function(input,gameprocessed)
if gameprocessed then return end
if input.KeyCode == Enum.KeyCode.B then
burst.Anchored = true
burst.CanCollide = false
burst.Parent = game.workspace
burst.Position = player.Character.HumanoidRootPart.Position
burst.Shape = Enum.PartType.Ball
burst.Material = Enum.Material.ForceField
burst.Color = Color3.fromRGB(120, 0, 0)
burst.CastShadow = false
burst.Name = "Burst"
local tweenInfo = TweenInfo.new(3,Enum.EasingStyle.Circular,Enum.EasingDirection.Out,0,false,0)
local goal = {Size = Vector3.new(50, 50, 50)}
local tween = TS:Create(burst, tweenInfo, goal)
tween:Play()
wait(4)
burst:Destroy()
end
end)