I am trying to make a script so that when the player clicks , it will create a ball/sphere from their head location ,but it does nothing when i test it.
here is the script
if mouseButton1OnClick:connect = true
then function attack
function()attack =
end
attack = game.Players.LocalPlayer.Character:findFirstChild("Head")
Instance.new("Part")
P=Part.Properties
P.Properties.Anchored=false
P.Vector3= 0,0,2
P.CanCollide=true
P.Shape=Ball
P.Size=5,5,5
P.Material= "SmoothPlastic"
P.BrickColor="ReallyRed"
P.transparency=.4
wait(5)
end

4 comments
Your capitalisation of Lua keywords will break the script.
Line 2, line 3, and line 14 -- "local", "if", and "end", respectively.
Thanks,it keep saying "expected '=' got head (line 2)
Sorry about my errors, it was rushed.