Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 4 years ago
Edited 4 years ago

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

0
try looking for errors in the output menu User#23252 26 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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

0
the tool has handle and im not getting any errors TFlanigan 86 — 4y
0
i tested on studio and works, but the force is low(*10) clashzone_fc 63 — 4y
Ad

Answer this question