#Loading issue

1 messages · Page 1 of 1 (latest)

pastel river
#

Whenever I load up my game it takes a second to load the animations and mechanics. When I dont touch anything before it loads I am able to punch and stuff after, but if I click or do anything before its done loading, the punching wont work. Is there anything I can do to fix this?

gusty orbit
#

or a higher or lower number

#

if you want it to be fancy add a loading screen

past solstice
#

Pause the script until everything needed is fully loaded

#

Preloading things might help as well

pastel river
willow vectorBOT
#

studio** You are now Level 1! **studio

past solstice
#

Could you provide the script, or section of it that's causing the errors

pastel river
past solstice
# pastel river

Sorry for the late response, lost internet for a while there. The problem seems to be that Player.Values.PunchCombo isn't loaded immediately, so when you click immediately it tries to find something that doesn't exist, and errors. Normally, that wouldn't do too much, but since you're setting the clickattackdebounce right before it, the script permanently thinks you're on the debounce

#

The easiest solution would probably be to just do the same thing for it as you are for the humanoid

pastel river
#

So I would replace Player.Values.PunchCombo? Or should I put a wait before it?

past solstice