Hello, I’m trying to make this script where when you click on a bomb it blows up. The problem is, the instance i’m using to make it blow up isn’t working. Their also isn’t anything in the output. It’s most likely the problem is near the line regarding the part’s position.
local script in bomb tool:
local players = game:GetService("Players")
local player = players.LocalPlayer
local bomb = script.Parent
local debounce = false
bomb.Activated:Connect(function()
bomb:Destroy()
local effect = Instance.new("Part", workspace)
effect.Material = Enum.Material.Neon
effect.Color = Color3.new(1, 0.47541, 0.217304)
effect.Shape = Enum.PartType.Ball
effect.Position = player.Character.HumanoidRootPart.Position + Vector3.new(20,0,0)
effect.Anchored = true
end)