Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

why this gun shooting script isn't working at all?

so i tried to make a gun. first i tried to make a shooting script that just shoots a small yellow brick here's the script:

local tool = script.Parent
local shootpart = tool.Shoot
tool.Activated:Connect(function()
		local bullet = Instance.new("Part")
		local bulletscript = tool.Bullet:Clone()
		bullet.Size = Vector3.new(0.1,0.1,0.1)
		bullet.BrickColor = BrickColor.new("New Yeller")
		bullet.Parent = workspace
		bulletscript.Parent = bullet
		bulletscript.Disabled = false
		bullet.Position = shootpart.Position
		bullet.Velocity = shootpart.CFrame.LookVector*10
end)

doesn't work of course

1 comment

0

try looking for errors in the output menu

1 answer

✓ Accepted answer

sorry the question, the tool have handle? , if RequiresHandle on tool properties is true and not have Handle the tool dont work.

2 comments

0

the tool has handle and im not getting any errors

0

i tested on studio and works, but the force is low(*10)

This discussion is preserved as it was. New answers, comments, and votes are closed.