So I learned the basics of scripting like if you showed me a NPC script I could break it down and know what every single piece of the script does but my problem is that I can't write scripts on my own like I can't think outside the box when it came to scripting and I'm wondering if any other pro scripters went through the same trouble I'm having and how they fixed it or if anyone that's learning coding and going through the same thing right now.
#Need a opinion
1 messages · Page 1 of 1 (latest)
Sorry for late response
But what I mean is that I can't write scripts on my own ik how they work but I just can't build a like NPC script or a bit of script by myself
And I learned by watching tutorials and just really looking at other people's code
When you watch tutorials you code smth using what you learned afterwards or it won’t be as effective
What do you mean npc script btw
Oh yea trust me when I learn something I try to use it in real code to get a grasp on it
And a NPC a non player character
Ohh I just used that as reference like a basic NPC that walks around the map
I can script like kill bricks, parts moving around using code, teleport systems stuff like that
So you don’t have a problem with those right then give me one you don’t know how to code
The method I used was creating a part in front of a player then destroying it after
You know all the stuff I think you just gotta be creative
If you can make a kill brick then it’s easy
Well you just have to combine the things you know
ye it sounds like you have problems breaking down complex stuff into stuff you know how to do
so by combining stuff you already know you can make better stuff
Ye
and vice versa by breaking down stuff you wanna learn how to make you’ll have an easier time
So like I should find a hitbox script and try to break it down?
Well not exactly
** You are now Level 4! **
no think about how to break it down yourself
what do you think making a hitbox script consists of?
The .touched function and like getting the humanoid
Oh yea actually making the part and making it stick to the humanoid when you do a input
Sumthin like that
Ye
right, so do you know how to do all of those things? if so then you just need to put it together
Yea ik how to do all that
Do you know how to use remote events?
I haven't gotten to those yet
Ok well you should probably try those out watch brawldev he’s pretty good
Np
Do you know how to use cframes
Mostly yeah
Can you give me a grasp on how you understand them
Cframes are just your coordinates
Ah I see more simpler then I thought
I usually get vector3 and cframes mixed up cause idk which ones to use and when to use in situations
If you wanted to change cframes with code it would be something like placeholder.CFrame = placeholder.CFrame (your operation) CFrame.new(x,y,z)
Yea I figured that much