#teach me how to script rn

1 messages · Page 1 of 1 (latest)

fervent mesa
#

TEACH MEEEEEEEEEEEEEEEEEEEEEEEEE pwease uwu

deadass teach me

cyan basaltBOT
#

studio** You are now Level 2! **studio

swift basalt
#

no

fervent mesa
swift basalt
fervent mesa
idle kite
#

try for yourself gng is not that hard

fervent mesa
#

my brain cant understand wtf is a userinput

tough heath
#

its easy

idle kite
#

why would you directly go to userinput

tough heath
#

look @fervent mesa u at least know how to use userinput

#

or how to call it

fervent mesa
fervent mesa
tough heath
#

userinput is easy man

rancid coyote
#

why do u speak like that

#

i mean the op btw

tough heath
#

to call it use

local ___ = game:GetService("UserInputService")

tight herald
#

what the fuck did i just read

rancid coyote
#

mybad

tough heath
#

one of the examples to use it is:

UserInputService.InputBegan:Connect(Function(Input, GameProcessedEvent)

#

InputBegan is the playing pressing a key or anything

tight herald
#
local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input, isTyping)
  -- Do stuff here probably
end)
#

👍

idle kite
#

isTyping 🥀

tight herald
tough heath
#

local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input, GameProcessedEvent)
if GameProcessedEvent then return end -- makes that if the plr is typing the input doesnt fire

if input.KeyCode == Enum.KeyCode.(anycode) then
-- Do stuff here probably
end)

idle kite
#

no hate, is just a misunderstood that variable, it does not mean the player istyping

tight herald
#

im gonna be so real i couldnt be bothered typing out GameProcessedEvent

#

😔

tough heath
tight herald
#

um

#

yes

#

👍

tough heath
#

💀

tight herald
#

thats the real method to use UIS

tough heath
#

fr

#

work smarter not harder

tight herald
#

anyway action input system is better

buoyant prawn
#

teach me bruh

paper rapids
#

1 Out Of Many Scripts In My Game

tight herald
tight herald
#

so many comments

#

holy

#

is this ai or sum

paper rapids
#

No?

buoyant prawn
tight herald
#

thats what i was thinking

buoyant prawn
#

or you just like comments

tight herald
#

ive never seen so many comments just

#

everywhere

tough heath
#

yo can some pookie bear help me pretty pls

tight herald
idle kite
#

but still the other comments looks weird

tough heath
#

pretty pls

tight herald
#

wym

idle kite
tight herald
idle kite
#

but ngl

#

seems like he just commented ai code

#

xd

tight herald
#

yeah ngl