#function variables not being registered

1 messages · Page 1 of 1 (latest)

dapper fox
#

this just magically broke in a new roblox place the script just doesn't detect the plr variable as anything and refuses to do anything despite all my other games being written like this

fallow slate
#

i feel like you broke something outside it

#

causing it to error

lofty kite
#

Dm me

fallow slate
#

and definetly dont dm this guy

lofty kite
#

What?

#

I’m not charging I just didn’t wanna make this post any longer

fallow slate
lofty kite
#

Oh sorry I just joined group lol no need to be an ass?

tired hemlockBOT
#

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

fallow slate
#

i could have called you a steal a brainrot scammer

lofty kite
#

To fix tour problem tho it seems your game isn’t registering plr. To fix your issues

#

That’s exactly what the issue is stating

#

If you need any further assistance dm me lmao I don’t need money to help people just don’t get notifications from groups I’m in so it’s easier for me as I’m not a kid sitting on discord 24/7! hope you figure it out

dapper fox
#

Everything is fine

#

Outside of that line

#

The function isn't defining its own variables

bold folio
#

just send the whole script

#

so we can see that everything is fine

honest grotto
#

I think there's something wrong outside that function scope

bold folio
#

he prolly forgot some end somewhere

dapper fox
#

this is the whole scripts

#

this isn't working

#

i have to manually assign the type

#

it doesnt recognize the variable as a player

vale field
#

@dapper fox
You have to finish the code

dapper fox
#

thast not it

vale field
#

plr.c is unfinished, same as plr

#

yes it is

dapper fox
#

im just showing in ther screenshot

#

that auto correct

#

isnt working

vale field
#

auto correct

#

works

dapper fox
#

im not a new scripter

vale field
#

50% of the time

dapper fox
#

something is wrong with studio

vale field
#

A) you're doing it in a local script
B) you're not completing your sentence.

#

I hope you realise plr.c wont show any auto fill ins.

vale field
vale field
dapper fox
#

ru dumb

vale field
#

no but you are.

dapper fox
#

the whole issue is that the function doesn't assing a type to its 1st variable

#

of course plr.c isnt a real thing

#

its meant to auto correct to characterAdded

#

but nothing shows up

vale field
#

no it isnt

dapper fox
#

🤯

#

wow

#

if i assign a type to the variable

#

plr.c works

vale field
#

exactly

dapper fox
#

isnt that crazy

#

almost like the script isnt auto assigning anything

vale field
#

you might be the slowest guy i ever met

dapper fox
#

and u dont even understand

#

the problem

#

i asked a fix for

#

🦨

upper urchin
#

Have you tried restarting studio? Unsure why your autocomplete is messed up, also do you have the new types beta feature on? I dont think its that unstable but could be effecting it

bold folio
#

Yeah I don't know why the hell an Animator gives scripting advice hes in the wrong @dapper fox 😭

bold folio
dapper fox
#

i just logged on to code and now it doesn't work

#

also all my script editor settings in studio are stock

#

i haev no clue what might be causing this issue

bold folio
#

can you print like plr.Name @dapper fox so we know if its only the auto completion or smth else

bold folio
#

so its only the auto completion

dapper fox
#

so the auto completion is broken for some reason

bold folio
#

you said you didn't change ur editor settings? @dapper fox

dapper fox
#

Yeah i didn't

#

except the ai coding thing

#

since its enabled by default

bold folio
#
settings().Studio["Enable Autocomplete"] = true
#

try this in the command line

dapper fox
#

didnt do anything

#

auto complete works for everything

#

except function variables

bold folio
#

can you go into another place and try it there?

dapper fox
#

still not working

#

my auto complete is on

dapper fox
#

ye

bold folio
#

hm

#

it's not you the :Connect() variables are broken @dapper fox

#

it just doesn't show shit even on .Touched

dapper fox
#

Oh

#

Is that ur script?

bold folio
#

ig you can just wait until ts gets fixed

bold folio
dapper fox
#

😔

#

Ty for the help

bold folio
#

on rojo it still worksepic

upper urchin
#

yeah i use rojo so i am un aware of any auto complete issues, but this is a sign that its good practice to define your arguments anyways