Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Can I Make This Explosion Go to The Player Mouse?

I want to make this explosion go to the player's mouse but i don't know how.

My Script:

local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
local Explosion = game.ReplicatedStorage.Explosion:Clone()
Explosion.Parent = workspace
Explosion.CanCollide = false
Explosion.Anchored = true
Explosion.CFrame = --I don't know what to put here

1 answer

✓ Accepted answer

You can get the mouse's 3D position, using Mouse.Hit:

Explosion.CFrame = mouse.Hit

This discussion is preserved as it was. New answers, comments, and votes are closed.