Still have questions? Join our Discord server and get real time help.
0

# the error says "attempt to call a nil value" I’m guessing its the bullets fault?

RareBIue 128
7 days ago
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

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. Tizzel40 225 — 7d
0
................................ I’m so stupid RareBIue 128 — 7d
1
no , your not , It was a mistake. Tizzel40 225 — 7d