Mouse.Hit is a CFrame. The explosion Instance takes in a Vector3 property. There's no error in my script. The whole script does execute. Here's the script,
local plr = game:GetService("Players").LocalPlayer
local mouse = plr:GetMouse()
mouse.Button1Down:connect(function()
local Boom = Instance.new("Explosion", game.Workspace)
Boom.Position = Vector3.new(mouse.Hit)
end)
When I click somewhere, the explosion does not appear. Also, when I checked workspace, the explosion was in workspace, but the position property was 0,0,0.
What's the problem?
Test
Thank you.
