no errors but the particle isnt emitting
local Tool = script.Parent
local Bullet = game:GetService("ReplicatedStorage").WeaponStuff:WaitForChild("Bullet")
local RemoteEvent = Tool:WaitForChild("RemoteEvent")
local ImpactSound = Bullet:WaitForChild("ImpactSound")
local Dust = Bullet:WaitForChild("Dust")
local Light = Tool.Handle.Attachment0:WaitForChild("LightFlash")
local Debris = game:GetService("Debris")
local Grip = Tool.Grip
RemoteEvent.OnServerEvent:Connect(function(Player, Char, MouseTarg, MouseHit, Damage, Smoke, FireSound)
if MouseTarg then
Smoke:Emit(5)
FireSound:Play()
Tool.Grip = CFrame.Angles(-0.1, 0, 0) * CFrame.new(0.2, -0.302, 1.5)
task.wait(0.1)
Tool.Grip = Grip
Light.Enabled = true
task.wait(0.01)
Light.Enabled = false
local Humanoid = MouseTarg.Parent:FindFirstChild("Humanoid")
if Humanoid then
Humanoid:TakeDamage(Damage)
else
ImpactSound:Play()
Dust:Emit(15)
local Bullet = Bullet:Clone()
Bullet.Parent = workspace.PartFolder
Bullet.Position = MouseHit
Debris:AddItem(Bullet, 20)
end
end
end)
** You are now Level 8! **