MouseButton1Down:connect(shoot) if script.Parent.Checker.BrickColor == "Bright Green" then script.Parent.Checker.BrickColor = "Really Red" local clone = game.Lighting.Bullet:clone() clone.Name = "Bullet" clone.Parent = game.Workspace clone.Parent = mouse.hit end
Please someone help!
Try this.
mouse = GetMouse() mouse.Button1Click:connect(function() if script.Parent.Checker.BrickColor == "Bright Green" then script.Parent.Checker.BrickColor = "Really Red" local clone = game.Lighting.Bullet:clone() clone.Name = "Bullet" clone.Parent = game.Workspace clone.Parent = mouse.hit end)
I am sure this will work.
script.Parent.Activated:connect(function()) --Activated is wen the Tool is Equipped AND you Click and plus, u forgot to do (function()) cos if u call a function before even loading it, u need that... if script.Parent.Checker.BrickColor == "Bright Green" then script.Parent.Checker.BrickColor = "Really Red" local clone = game.Lighting.Bullet:clone() clone.Name = "Bullet" clone.Parent = game.Workspace clone.Parent = mouse.hit end