#Less than check
62 messages · Page 1 of 1 (latest)
Is there something wrong with that?
if stage < 1 then
--blahblah la
else
--blh
is this not working?
Nope
then do
if Stage <= 1 then
script.Parent.AI.Enabled = true
script.Parent.Part.Script.Enabled = false
if I'm understanding this correctly
Why would i need a module script
What does a module script do that a server script doesnt?
Enabling / Unenabling scripts is the best unefficient practice
Isn't that whats in the screenshot already?
Is there a substitute?
I am very very unfamiliar with module scripts
nvm
all scripts
i am unfamiliar with
satan whenever he has the opportunity to bring up modulescript functions:
Do module scripts work in the workspace
or do they need to be in something like serverscriptservice
I highly recommend you to learn about module scripts
And oop for custom npc
Object oriented programming
I wanna recommend u a channel that's been helping me learn oop but yt is broken rn
Huh
my subscriptions wont show
found him, I suggest watching crockpot dev
he taught me a lot about oop within' the span of 2 days
the other is B Ricey who is also helpful teaching all that
I don't understand how people could possibly be happy whilist scripting
I hate it 70% of the time

but when you finish the script it's like angels lifting you up into the sky and handing you an imaginary cookie
also the pain is worth it when you can bring your game ideas to life ;)
Man I haven't even started learning
i wish i just had some sort of team
maybe i should try and ask the ai thingy
thats lazy
but i could still try it
maybe this'll work
local intValue = script.Parent -- Assuming the IntValue is a child of the script
local woahwoahwoahScript = game.Workspace.Woahwoahwoah -- Replace "Workspace.Woahwoahwoah" with the path to your "Woahwoahwoah" script
local hmmmmmScript = game.Workspace.hmmmmm -- Replace "Workspace.hmmmmm" with the path to your "hmmmmm" script
intValue.Changed:Connect(function(newValue)
if newValue < 1 then
woahwoahwoahScript.Disabled = true
hmmmmmScript.Disabled = false
else
woahwoahwoahScript.Disabled = false
hmmmmmScript.Disabled = true
end
end)
IT FUCKING WORKS
YEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH
now i feel like shit because i got ai to do it
now why is disabling scripts ineffecient
and does it really matter
I've been using ai to learn
Yes, you didn't make the script, but if you understand the script then you chillin'
still make your own scripts, but it doesn't hurt to ask the ai for a script since half the time the script is wrong (unless the script is simple)
then u can debug and enjoy coding in the pits of 🔥 because you spend 5 hours fixing a simple typo😢 😢 😢 😢 😢