local ReplicatedStorage = game:GetService("ReplicatedStorage")
local bullet = ReplicatedStorage:WaitForChild("Bullet")

local gun = script.Parent
local speed = 200


script.Parent.Parent.Activated:Connect()
local Bullet = bullet:Clone()
Bullet.Position = gun.Position
Bullet.Parent = game.Workspace
Bullet.Velocity = gun.CFrame.LookVector * speed

3 comments

1

Rare , on line 8 , that connection isnt finished , It should be script.Parent.Parent.Activated:Connect(function() , then and end at the end of your code.

0

................................ I’m so stupid

1

no , your not , It was a mistake.