So, I want this script to make the localplayer shoot a beam out of its head when the player presses Q. Script is:
tool = script.Parent
head = game.Workspace.Players.LocalPlayer:GetCharacterFromPlayer().WaitForChild("Head")
----------
tool.Equipped:connect(function(mouse)
mouse.KeDown:connect(function(key)
if key == "q" then
f = Instance.new("Part")
f.Name = "Effect"
f.Shape = "Ball"
f.TopSurface = "Smooth"
f.BottomSurface = "Smooth"
f.Size = Vector3.new(3,3,3)
f.CFrame = head.CFrame
-- Stuck
end
end)
end)
-- Made by dragonmaster4111

2 comments
Which line? And should I use lookvector?
No, just set it after you cframe'd it.