#I've been struggling to add jumping to my wallrun system

1 messages · Page 1 of 1 (latest)

junior shard
#

I've been trying to add being able to jump off a wallrun for a while now but I haven't found any tutorials which helped or even suggested how I could add this. Any help is apricated :D

Attached is both the server and client scripts

still jasper
#

Step 1: unnest your logic. It isn't quite clear to me where your things like "wall touched function" start and end. If it were me I would make 2 functions, a startWallRun, a stopWallRun, and maybe a helper function like onJumpRequest (when they touch the wall and also I don't think you need the server side really unless you want to control where they are allowed to wall jump, then i'd use tags and collection service.
Step 2: after making clear functions that handle specific logic you can use print statements to help debug it a bit.
Also are you trying to use "UserInputService" In a server script?
Lastly the way this is written it almost looks like you are trying to call RunService every tick, from client to server and that is a big nono.

junior shard
still jasper
#

A nested function is when all your logic is in 1 loop

sturdy grailBOT
#

studio** You are now Level 3! **studio

still jasper
#

You need to seperate your functions into things like local function onHeartbeat()

#

I would do some googling about what a nested function is and how to seperate it.

#

It will save you so much time in the development scripting area