#My hitbox aint pointing towards my cursor

1 messages · Page 1 of 1 (latest)

smoky rain
#

code: local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()

local can = true

mouse.Button1Down:Connect(function()

if can then
    
    
    local lookatpart = Instance.new("Part")
    lookatpart.CFrame =  CFrame.new(script.Parent.plr1.hitbox.Position,Vector3.new(mouse.Hit.Position.X,mouse.Hit.Position.Y,script.Parent.plr1.Position.Z))
    
    lookatpart.CFrame += lookatpart.CFrame.LookVector * 3

    
    can = false
    script.attack:FireServer(lookatpart.CFrame)
    lookatpart:Destroy()
    task.wait(0.25)
    can = true
end

end):

the server only summons the part where the "lookatpart" is placed

muted pollen
#

is it the Slash itself?

smoky rain
#

Yes, i went to sleep srry

robust cape
#

YOO PLEASE CAN I INVEST INTO YOUR GAME

smoky rain
#

Fixed it myself nvm