#SCRIPT TO RUN
1 messages · Page 1 of 1 (latest)
copy and paste it bro
holy
if input == "s"
if input == "h"
please use your brain
inefficient slop, can use actionservice to check for multiple inputs without 10 if statements
** You are now Level 4! **
ironic 😂
hes a beginner. you shouldnt be giving him things that will hurt his brain
make it simple for him you moron
fucking morons like you ruin rsc btw
if he had multiple if statements he could organize them with multiple other connection functions
or using CAS
insulting him and giving him inefficient solutions hurt his brain more now and in the long-term stfu
but CAS isnt easy because hes obviously a beginner
what r u talking about?
no it doesnt
cas is easier wym
we were both beginner and we both used UIS
LMAO
you have to learn a bunch about other things when doing cas
do you have a brain?
no u don't it's two new things, the function itself, and how it works
you have to read the documentation for like a long time
half the things in cas he doesnt know
learn how to bind learn about context and actions
ContextActionService:BindAction("Run", Run, true, "w", Enum.KeyCode.S)--add other running buttons
These two are the only things he has to understand before he can implement it
input objects input state
he also has to learn about the buttons renaming them resizing them
holy just sau ur dumb
also has to learn about adding multiple keycodes
the small things pile up
and it becomes difficult for him
now tell me
is it easier to learn about the small things or go with the slightly inneficient way hes going with
he doesn't have to add keycodes, he can just do "x"
btw didnt you tell me to use raycasts when you didnt know what i was talking about
you dont know anything
can legit doContextActionService:BindAction("Run", Run, true, "w","s", "z")
u was looking for the end position infront of ur gun
yep this is where the argument ends
certified dumbass
? my end position was mouse.hit
LMAOO
im objectively correct 😭 that's how CAS works
U don't NEED to type out the keycodes themselves
CaS has like 100 properties he has to learn
no it doesn't
cas can be more efficient than uis but uis is clearly easier to teach and learn
if hes a beginner why not just let him use a simple, somewhat inefficient method. whats the point in arguing
cope, ur low IQ
this is what im saying
getbutton, bindaction, bindactionatpriority, unbindallactions, also
hes just learning
also when changing keybinds he has to learn to detect whgenever its changed unbind action and rebind it
therefore no need for anything more advanced than uis
that isnt going to be easy for him
ContextActionService:BindAction("Run", Run, true, "w")
In his function he just checks whether the context recieved is "Run" and that's it
you didnt read a single thing i said
please stop talking
the string Run is the context
what hes doing right now is correct and even if it is inneficient its okay
ur a dumbo
im giving him a more efficient and better method
he wont mess up his brain because he learns an inefficient thing
which is going to be harder for him to learn
CAS isn't hard bro 😭
he has to learn the basics then move up. you expect him to use physics, lerping instead of tweening, all because its more efficient
please grow a brain
if he knows how to check for inputs from players he can use CAS, if he has ur level of intelligence he might struggle thouugh
lerping isnt "hard" either
but should he learn it
no
hes a beginner
nothing is hard but constantly learning new things is going to be tough for him
let him get USED to and MASTER what he knows
before learning other things
yes, copying and pasting 10 if statements for an input when he can do the same job easier and with less clutter
BindAction(actionName : string,functionToBind : function,createTouchButton : boolean,inputTypes : Tuple):()
Bind user input to an action given an action handling function.
BindActionAtPriority(actionName : string,functionToBind : function,createTouchButton : boolean,priorityLevel : number,inputTypes : Tuple):()
Behaves like BindAction but also allows a priority to be assigned to the bound action for overlapping input types (higher before lower).
BindActivate(userInputTypeForActivation : Enum.UserInputType,keyCodesForActivation : Tuple):()
Bind a Enum.KeyCode with a specific Enum.UserInputType to trigger Tool.Activation and ClickDetector events.
GetAllBoundActionInfo():Dictionary
Get a table of information about all bound actions (key is the name passed to BindAction, value is a table from GetBoundActionInfo when called with the key).
GetBoundActionInfo(actionName : string):Dictionary
Get a table of information about a bound action given its name originally passed to BindAction.
GetButton(actionName : string):Instance
Yields
Retrieves a ImageButton of a bound action that had a touch input button created.
GetCurrentLocalToolIcon():string
Return the BackpackItem.TextureId of a Tool currently equipped by the Player.
SetDescription(actionName : string,description : string):()
Given the name of a bound action with a touch button, sets the description of the action.
SetImage(actionName : string,image : string):()
If actionName key contains a bound action, then image is set as the image of the touch button.
SetPosition(actionName : string,position : UDim2):()
Given the name of a bound action with a touch button, sets the position of the button within the ContextButtonFrame.
SetTitle(actionName : string,title : string):()
Given the name of a bound action with a touch button, sets the text shown on the button.
UnbindAction(actionName : string):()
Unbind an action from input given its name.
UnbindActivate(userInputTypeForActivation : Enum.UserInputType,keyCodeForActivation : Enum.KeyCode):()
Unbind a Enum.KeyCode with a specific Enum.UserInputType from triggering Tool.Activation when bound with ContextActionService:BindActivate().
UnbindAllActions():()
Removes all functions bound. No actionNames will remain. All touch buttons will be removed.
he has to learn majority of that
if hes making a mobile compatible game he has to learn all of it
its simpler for him
this argument is stupid just let the guy master the basics 🙏💔
its inefficient yes, but it can be organized
ur over complexifying how CAS works jus to prove a point
ur low IQ no one shud listen to u 😭
im trying to explain this to him but this moron is missing most of his braincells
guarantee im smarter than u
UIS is easier than CAS
buddy
right now he knows UIS
let him stick to it
even if his method is inefficient
if he wants to overburden himself by learning CAS he can but once again
its an overburden
local function Run (actionname, inputState)
if actionname == "Run" and inputState == Enum.UserInputState.Begin then
--running script
end
end
ContextActionService:BindAction("Run", Run, true, "w", Enum.KeyCode.S, Enum.KeyCode.DPadUp )--add other running buttons
it's that easy
if he wants to add more buttons he just goes to context line and adds new letters as needed
he can add controller inputs, mobile inputs, etc
yes and lets say he has more knowledge about UIS than CAS, eventually if he wants to do something else with his current knowledge he will think "I can use UIS to do this, but pipeitupwho told me to use CAS. looks like i have to go out of my way to learn how to do this using CAS"
if he ONLY learns this stuff eventually he has to learn more if he wants to do more things
I am telling him the right way to do things, and what's the harm in teaching him something that's as easy as CAS?
if it was that hard for u to learn how to use CAS, stop insulting him 😂
ur "method" btw.
ok CAS is easy got it. lerping, oop, cframe math, exploits (remote events making sure they arent explotiable), modulescript architecture, memory managment/perofrmance, asynchronous code this is all easy. should he learn it?
no im expanding his method
Yes he should learn it, this is LUA BASICS
hes a fucking beginner bro
oh my god
Right now, taking in inputs
youre brain is so stupid
He SHOULD learn cAS
HE HAS A SCRIPT ALREADY. YOU TOLD HIM TO REWRITE HIS ENTIRE SCRIPT BECAUSE ITS INEFFICIENT
i saved him a burden by telling him to continue his script
EXACTLY, if he's learning how to use inputs and wants to USE multiple INPUTS for the same THING, CAS IS PERFECT. It's the PERFECT oppurtunity to learn it as well
u gave him tech debt
He legit has the textbook use case for CAS
nope. and he has to spend another hour learning how to make it double clickable btw
why shouldnt he learn it?
he literally said he wants to know how to detect other double taps. he never fucking said hes gonna use it for sprinting
better spending that hour than figuring out how to use UIS for double w key sprinting 😂
he already has a script for it bro
"Why teach someone the proper solution to an issue that's relatively EASY so he can learn? when he can use some dumbo logic bloat I know will set him back"
bro do you have a brain
HE ALREADY has a script for it
bro youre so nonsensical
YOU MISUNDERSTOOD and youre wrong. stop sticking to a point that was for an argument you werent arguing for
I am right 😭
it wont set him back. another person said so
U are dumb I am not, stop projecting
"let me give him the wrong answer" 😭
ur a idiot
** You are now Level 5! **
its an overburden to constantly learn "efficient" methods
not a wrong answer
his code works
i never told him to rewrite his code
hes going to have trouble rewriting his code
with CAS he doesn't have to rewrite it, he can keep 80% of it, all he's changing is checking for the context and adding the CAS
holy ur dumb 😭
and ur the guy that said he, a beginner should learn lerping, oop, cframe math, exploits (remote events making sure they arent explotiable), modulescript architecture, memory managment/perofrmance, asynchronous code
hes a beginner btw
i even wrote it out for him
if actionname == "Run" and inputState == Enum.UserInputState.Begin then
--running script
end
end
ContextActionService:BindAction("Run", Run, true, "w", Enum.KeyCode.S, Enum.KeyCode.DPadUp )--add other running buttons
and u said he should immediately scrap all he has
okay lets say he wants it to be A and not W. hes going to need a whole NEW function
IF HES GOING TO IMPLEMENT SOMETHING ELSE
Yes, these are all natural progressions he's going to learn as he works on his project. "Hmm I wonder if there's a way I can store some data to use in a bunch of other scripts instead of writing the same thing over and over again.." hmmmmm
no he doesn't
U dont even know how CAS works LOLL
no he shouldnt learn it all immediately moron
Stupidest comment oat
now I know u have no clue what ur talking about LOLL
he already added a function for w right
and lets say he wants double tapping H to heal
new function OR clog up his current function
just quiet down, ur a dumbo, u don't know what ur talking about
u just noticed u lost the argument and are trying to change the topic
Ironic
😭
explain this
why is he going to need a new function if he wants to use A not W?
lets flesh it out
lets see who is right or wrong
does @idle shell know what he's talking about or not?
lets find out!
because hes healing and not changing his walkspeed? he can either make a new function for organization or clog up his current function which will ruin the readability
what are u talking about?
healing??
what function does he have with HEALING??
LOLL
He has a RUN script
How does he need a different function when he changes his keys from W to A To run that said function using CAS?
lol u know u lost and stopped typing, what a sad existence LOL
alright this is where we drop the argument and admit youre wrong
and lets say
Let me give u the answer since u don't know
HYPOTHETICAL
So
IN CAS
ur so dumb bro
ironic
So he wants to change his Key from W to A?
here's what u do with CAS
ContextActionService:BindAction("Run", Run, true, "w", Enum.KeyCode.S, Enum.KeyCode.DPadUp )--add other running buttons
ctrl + h
ContextActionService:BindAction("Run", Run, true, "a", Enum.KeyCode.S, Enum.KeyCode.DPadUp )--add other running buttons
there done
.Keycode.W --> .Keycode.A
where's this new function?
hours of learning just so you can change one thing that he probably wont change 👍 also nice changing the topic
hey listen dumbass
let me talk here
no
shut up
let me talk
shut
it's used for organization, when he has MULTIPLE other functions
I dont let idiots interrupt me
Jump function, Grappling function, sliding function, adding player customizable inputs, etc
CAS does this
if he wants a heal function for the key H being double clicked. what does he do? he makes a new function regardless of CAS to implement healing
Mobile support? console?
he can do that with his own inefficient method already........
with loads of extra code, for no reason. He coulda spent 30 mins learning cas, now he has to spend 30 mins making the changes
With no context at all @sullen bay you're wrong asf
no he doesnt
Bye
LMAOOOO
no context
I seen enough
he took one look and knew u were wrong
what am I wrong about
Of last message
ur wasting his time
lets keep it between me and u moron
ironic
ironic how?
he injected himself
100 times uve said ironic not 1 made sense
he was expressing his opinion
LOL
its discord kid
"this is my private argument! 🤓 "
Me when gpt
ur wasting my time, = ironic saying im wasting his time
ur the one thats wrong tho
this is a script I WROTE for my GAME
it wouldnt take 30 minutes
I just changed the function name and input key
Ai
uhuh
mobile support? add a button --> connect function to his current double tap script
console? iskeydown buttonr2 -- > use his already made function
5 mins
max
or spend an hour learning about CAS
just have the context somewhere ez, do the samething , takes 2 seconds
yes but u spend 2 hrs learning about CAS
ur a nobody why r u injecting urself
CAS isnt the definite better method btw. and hes more known than u
ive never seen "pipeitupwho" in RSC
go back to Roblox Studio Friends House or whatever 200 member server ur in
he injecting himself and said he was leaving jus to stay on my wood
Also I trust more an active member that's s1
I could tell
s2 level 😏
Never
when will they release the ranking tickets
i made a state machine, ez s2 😏
im done wasting my time, method I brought up is more efficient and works better.
takes too long to learn for a beginner, he should just stick with his way because it works and he can organize it to make it scalable and readable
my version of "beginner" differs from your version of "beginner", and your version is equivalent to a skid
ContextActionService is perfectly fine and good
U know what my point was
if you for some reason don't like it, there are still ways to do it better than shitloads of conditionals
Hehad to rewrite his script to detect double clicking + if he constantly drops what he knows he will be burdened
He JUST learns something just for someone to say "drop it this sucks"
I mean, yeah, and?
He posted a script and said "how can i make this detect other keys" and i told him
Simple, without rewriting sm else
that's great, but it's also about to be deprecated
And its simpler for him because he could stick with his own script. He never asked for alternatives or "teach me how to do it better"
He simply showed us his script and asked how can i add other keys
Not critisize my script for unefficiency and demand i do it better
criticize*, inefficiency*
in any case, your point here is invalid when used against the push for efficiency
Ur a nerd
** You are now Level 26! **
how quick you are to move to insults
Its not invalid because just let him master what he knows 🤦
Ur the one correcting my mispelling
LOL
Im calling u a nerd for that
and does that make you mad
And if he constantly learns how to optimize his code he wont learn anything
"constantly learns..." "...won't learn anything"
3 weeks to learn about uis and how to implement it just to learn about CAS (and UIS wont be deprecated u moron)
choose your words very carefully
Yes. I stand on tbat
you are practically weaving a web of contradiction
No meaningful progress on scripting knowledge will be gained
Not a contradiction. And I assume youre a christian for calling it that?
You need to understand what im insinuating not take the literal meaning
why would you assume I'm christian?
Because they call the non contradictions in every book contradictions
They dont know what context is
sir, the literal meaning is effectively the primary point behind definition and debate
if I don't take the literal meaning, what am I supposed to go on
I'm not even religious, so I can't begin to fathom what this is spawned from
When I said he wont learn anything if he learns how to optimize his code my meaning was that he wont make any meaningful progress toward becoming a more knowledgable scripter if he constantly optimizes and relearns what he knows now
Stop criticising the small things acting like ur smart and stick to the argument
that is ironic, actually, because I constantly optimize and relearn things and I am quite capable of many things today
Is this not how you learn?
As an intermediate or above intermediate scripter. Not a beginner
Nope. Hes relearning everything, hes a novice and shouldnt be doing that
You already have knowledge so you have nothing to do BUT relearn better ways
Isn't it funny how you have to first understand the idea behind logical statements to know how to use them? If he truly missed that fact and you had to give it to him, I'm afraid that is more against your argument than for it
What
Are you changing the topic
This is completely unrelated
sorry, instead of "logical statements" I should say "conditional statements"
does that fix it
the original code he provided has this whole double key press thing implemented already
isn't it ODD that he didn't think to reuse it
Whats ur point
Now I truthfully don't take people to be dumbasses, but either he is one or he really just wants to get the job done
it's always better it get the job done better, yes?
it works, but that's not my point
my point is this: he failed to see the practicality behind reusing it
he asks here for something he himself figured out? or, so you would like to make it out
in essence, I don't think that this is a learning experience for he; just a place for he to get an answer
in other words, it would be silly to think that the priority should be to give him something he can comprehend based on a copy of what he has neglected to reuse
🤷
I see your point, i agree that this isnt a learning place. Thats why i didnt tell him about CAS and just told him to copy and paste his code multiple times
that intent I can agree on
Thats why I gave him something to comprehend because it aligns with what i said above
However I cannot agree with your intent to give him something to comprehend, because in my professional opinion, people who refuse to learn are not worth the effort of a soft upbringing
And this dumbass comes in talking about CAS, i didnt know how to reply so i talked about giving him something easy and telling him to reuse his code. But my real point is this right here
Just a personal thing tho
ContextActionService
what is that ;-;
its the thing these guys been yapping about
Advanced Roblox Scripting Tutorial #26 - ContextActionService (Beginner to Pro 2020)
Hey guys! Welcome to another Roblox scripting tutorial. In today's video I am going to be teaching you about ContextActionService. This is how you create custom mobile roblox buttons on mobile. It's similar to UserInputService but is useful when you want to ju...
DISCORD 📜
Join my Discord Community if you want scripting help, participate in events/challenges, and make friends!
https://discord.gg/WC6kPu5W5P
MEMBERSHIPS 🎁
Get Access To My Scripts + More Perks By Becoming a Channel Member! 👇
https://www.youtube.com/@BrawlDevRBLX/join
ADVANCED ROBLOX SCRIPTING SERIES 🔴
https://www.youtube.com/p...
youll need it
I think that i better go it the simple, idk, all this make me understand that Is better if I just make the entire map first and then the script ;-;
if you wanna make things simple dont make it advanced
and I have the movement almost done, like 99%
good point
Il just send the animation and the double tap W in action