#Explanation

46 messages · Page 1 of 1 (latest)

icy rapids
#

Can someone tell me which each code line do? Im a starter in scripting and i didn't understand it.

#

full code btw (when u touch the part, u have speedboost)

frozen ginkgo
#

ok

frozen ginkgo
#

line 1 - detect the part

icy rapids
#

so, when i create a variable with "script.parent" value, the variable represents the part?

frozen ginkgo
#

if the script in the part

#

do u have a screen shot for workspace

icy rapids
frozen ginkgo
#

so u can use script.parent

icy rapids
frozen ginkgo
#

ok

icy rapids
frozen ginkgo
#

u cant its only one variable

#

local part = script.parent

part.touched:Connect(function(hit)

local h = hit.parent:FindFirstChildren("Humanoid")

if h then

h.WalkSpeed = 500

end

end)

icy rapids
frozen ginkgo
#

this code do the same

#

yes

#

Walk speed in Humanoid

#

jump hight and health in humanoid too

icy rapids
#

alr, now i can understand

#

last question

icy rapids
frozen ginkgo
#

hit is the function name

#

parent is the char or player who toched the part

#

FindFirstChild to find Humanoid in player char

icy rapids
small quarryBOT
#

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

frozen ginkgo
#

part.touched:Connect(function(hit) touched is event thatuse with parts

#

function any thing btween this () its the name of that function

frozen ginkgo
small quarryBOT
#

studio** You are now Level 5! **studio

icy rapids
#

alr

#

ty for explaning

#

this will help me

frozen ginkgo
#

u can do a part that kill u if u touch it

#

try it

icy rapids
#

i will try without checking my last scripts

frozen ginkgo
#

and if anything u struggle with just send me

icy rapids
#

ok

frozen ginkgo
frozen ginkgo
#

u did the script ?

icy rapids