Greetings everybody, i was just making a pistol with my basic scripting knowledge and it seems to keep setting position as (0,0,0) in Vector3. However, it does not error which is fortunately good. I will show you my current code.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
script.Parent.Equipped:Connect(function()
mouse.Button1Down:Connect(function()
local projectile = Instance.new("Part",workspace)
projectile.Size = projectile.Size - Vector3.new(1.8,1,2)
projectile.Position = Vector3.new(mouse.hit)
print(projectile.Position)
if mouse.Target == "Head" then
mouse.Target:WaitForChild("Humanoid")
print("hum")
end
end)
end)
You can decide if you want to make it into FE, but thats your own choice i will never beg someone or say that you have to make it into FE for me.
Anyways, have a merry christmas and a happy new year! ~intepcs
