#Knockback issue

65 messages · Page 1 of 1 (latest)

carmine isle
#

you are stupid thats the issue

cursive torrent
#

Gimme an answer

scenic moon
#

there's a magical print statement you can use

#

here's how you use it:

#

print("Hello, world!")

#

try using it

#

in between codeblocks

cursive torrent
#

Did u even read what i wrote

scenic moon
cursive torrent
scenic moon
#

debug

cursive torrent
#

linearvelocity does get created

#

linearvelocity does get created

#

linearvelocity does get created

scenic moon
#

"you can prolly js find the issue urself by breaking things apart, putting it back blah blahhah"

cursive torrent
#

t randomly however gets knockbacked

#

t randomly however gets knockbacked

#

t randomly however gets knockbacked

#

quit giving me dumbass answers

#

debug my ass

scenic moon
#

that's why youre s0

#

begging for help

cursive torrent
#

dumbass and what are you

scenic moon
#

im a scripter not applying for a rank

cursive torrent
#

lame excuse

scenic moon
#

i never begged for help anyway

#

bro youre script for THREE YEARS

#

its time to leave

#

bro

#

😭

potent swan
#

i mean why do you fire all clients, do you want knockback to apply to everyone. Im not experienced in doing knockback stuff but wouldnt it be better to apply it over the server?

#

Also is there supposed to be an e before humanoidrootpart

cursive torrent
potent swan
#

?

lone riverBOT
#

studio** You are now Level 5! **studio

waxen grotto
waxen grotto
#

Try making the knockback server sided instead.

cursive torrent
#

But a client sided one is smoother

waxen grotto
#

Not necessarily

cursive torrent
#

forget that, why is this not working

potent swan
#

humanoid might interfere with physics stuff, im not sure but try making character sit first

cursive torrent
potent swan
#

?

cursive torrent
#

You good bro, its alr

waxen grotto
waxen grotto
#

The script.

cursive torrent
#

.

waxen grotto
#

The local script.

#

That is a server scriot sending args to client.

#

Where is the one that answers the call

cursive torrent
#
function knockback.default(args)
    local linearVelocity = Instance.new("LinearVelocity")
    linearVelocity.MaxForce = args.maxForce
    linearVelocity.Attachment0 = args.parent
    linearVelocity.VectorVelocity = args.direction * args.power
    linearVelocity.Parent = args.parent
end
#

this handles it

#

you want the client listener?

#

sure ig?

#
local ActionTypes = {
    handleVFX = {
        lightAttack = coreVFXHandler.lightAttack
    },
    handleKnockback = {
        default = coreKnockbackHandler.default
    }
}

local function coreListener(args)
    if ActionTypes[args.actionType] and ActionTypes[args.actionType][args.action] then
        ActionTypes[args.actionType][args.action](args)
    end
end

CoreEvent.OnClientEvent:Connect(coreListener)
#

it kinda got a laggy effect

waxen grotto
#

Make the knockback server sided and make the client calculate physics using SetNetworkOwner()