Code currently:
local rp = game:GetService("ReplicatedStorage")
local mouse = rp:WaitForChild("mouse3")
local player = game:GetService("Players").LocalPlayer
local Mouse = player:GetMouse()
local debounce = false
mouse.Event:Connect(function()
Mouse.Move:Connect(function()
if debounce == false then
debounce = true
local MousePosition = Mouse.Hit
if (MousePosition.Position - player.Character.HumanoidRootPart.Position).magnitude <= 63 then
rp.waterp:FireServer(MousePosition)
end
end
end)
end)
The player lands their mouse somewhere, presses f then the attack will go in that spot, so the attack is on the mouse (scripts before).How can I make the attack come closer to the radius I wanted, in that direction if its too far?
