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
COMMUNITY QUESTION
the error says "attempt to call a nil value" I’m guessing its the bullets fault?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
Rare , on line 8 , that connection isnt finished , It should be script.Parent.Parent.Activated:Connect(function() , then and
endat the end of your code................................. I’m so stupid
no , your not , It was a mistake.