The sound id is correct. What am i doing wrong...
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local tool = script.Parent
local Handle = tool:WaitForChild("Handle")
local debounce = false
tool.Activated:connect(function()
if debounce == false then
debounce = true
local ball = Instance.new("Part", game.Workspace)
game.Debris:AddItem(ball, .5)
ball.Shape = "Ball"
ball.FormFactor = "Custom"
ball.Size = Vector3.new(0.8, 0.8, 0.8)
ball.BrickColor = BrickColor.new("Lily white")
ball.CanCollide = false
ball.CFrame = Handle.CFrame
ball.CFrame = CFrame.new(ball.Position, mouse.hit.p)
local v = Instance.new("BodyVelocity", ball)
v.velocity = ball.CFrame.lookVector * 90
v.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
local firesound = Instance.new("Sound", ball)
firesound.SoundId = "280717841"
firesound:Play()
game.Debris:AddItem(firesound, 3)
wait(.4)
debounce = false
end
end)
|