User:WockyYT

quick lua teaching
1.variables

local partname = anything u want

like

local hotdog = burger

so the luabot see burger as hotdog

2.functions

function can be made like

local function functionname

code

code

code

end

like

local function fire(otherpart)

blah humanoid blah blah

if humanoid then

blah local fire = instance.new(fire)

fire.parent = humanoid blah blah

humanoid.health blah = 0

end

3.if statement

if you dont have robux then u cant buy this gamepass

likea

if 5 - 5 = 0 then

part.transparency = 1

end

yep the bot can do math btw

4.tables

i dont fully learn this but i think i can make a tutorial

local aa = {part, a, partnname, nevergonnagiveuup}

5.humanoid

getting humanoid in ur code need to have this script

local plr = game. Players. ...

local character = plr. Character or plr. ...

local Humanoid = character:WaitForChild("Humanoid")

to work

then u can do events like humanoid.Health = 0

6.events

events is easy

just type

partname.anyeventsuwant:Connect(functionname)

a tag of an event is a lightning bolt

heres events in action

local function iftouched(otherpart)

local plr = game. Players. ...

local character = plr. Character or plr. ...

local Humanoid = character:WaitForChild("Humanoid")

if humanoid then

humanoid.Health = 0

end

end

Part.Touched:Connect(iftouched)