#scripting issues

1 messages · Page 1 of 1 (latest)

glad jolt
#

im trying to make m1s for a fighting game im making but the code from the toturial i followed doesnt work can someone help me pls?

tardy creek
#

Red underlines means it’s written incorrectly

glad jolt
#

what should i write where the red bits are

#

or do i take them out

leaden phoenix
#

if ur gonna script from a tutorial at least learn the basics

#

but here is how to fix it

glad jolt
leaden phoenix
#
local currentpunch = 0

debounce = false

debounce = false

debounce = false
#

thats for all the red lines

glad jolt
#

so take out the == and replace it with =

plucky hingeBOT
#

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

leaden phoenix
#

== is for if statements

glad jolt
#

so do i replace all == with = in the "if current punch" stuff

#

with the "if current punch" stuff

leaden phoenix
glad jolt
#

alr

#

i changed the debounce and current punch to 1 =

#

i tried it and nothing happened

#

its meant to do 1 punch then another punch when i click my mouse but no animations play

wooden sparrow
# glad jolt

Learn the basics bruh, its like u cant even talk yet but in programming sense

#

U missing lot of operators and spelling

glad jolt
#

Alr thanks for the advice

supple lava
#

the "==" is basically a check.
if you just do "=" then you set the value, if you do "==" then you're checking if it's f.ex. true.

if player.Name == "John" (Checks if the player has the name "
player.Name = "John" (Sets player name to John"