Just as the title, any way to make a lightning strike (or a effect that damages a living target) From Point A (A brick from my tool) to Point B (my cursor) I heard first you gotta get the Cursor's Location

local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Strike = game.ReplicatedStorage.Strike

mouseLocation = UserInputService:GetMouseLocation()
Strike.Position = UDim2.fromOffset(mouseLocation.X, mouseLocation.Y)

What I want to make: So How do I make it so that my tool strikes where my mouse pointer is when Pressing (E)

Make A limit "Probably using magnitude"

Also, should the lightning strike be a floating Group/Part?

1 comment

0

I'm really messed up when it comes to scripts