#MY Highlight script is don't working (i think that is a simple script)

81 messages · Page 1 of 1 (latest)

thin thorn
#

Hiii! I have an problem with my script and i don't know why is this don't working for me

#

still don't :C

atomic sandal
# thin thorn still don't :C

its local humanoid = player:WaitForChild("Humanoid")
also in this case player should be renamed to character
it would still work but easier to read

azure ferry
#

your player variable will be the starter character scripts folder, it should be local player = game:GetService("Players").LocalPlayer.Character

atomic sandal
azure ferry
#

yes but the script's parent is not the player's character

atomic sandal
#

it is

azure ferry
#

no it isnt..

atomic sandal
#

yes

azure ferry
#

prove it

atomic sandal
#

ok

#

one sec

#

:| studio updating

azure ferry
#

OH

#

apologies im stupid :)

thin thorn
atomic sandal
azure ferry
#

yeah

#

my bad

atomic sandal
#

lol np

azure ferry
thin thorn
#

No problem soo any solution...?

atomic sandal
atomic sandal
#

what i said

thin thorn
#

wait

#

loading

atomic sandal
#

k

azure ferry
#

that code will only run once

#

once it checks it once the script will end

thin thorn
#

Yep... didn't work

atomic sandal
#

hmm

atomic sandal
#

what is this xray highlight

#

wait

#

did u make sure the walkspeed is correct

thin thorn
#

hmmm

#

yeah.. here is the sprint script:

atomic sandal
#

try changing the default walkspeed to 18

#

just for now

thin thorn
atomic sandal
#

OH so you are checking that everytime it runs?

#

*the player runs

azure ferry
#

do uhh

humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function(speed)

    if speed > 17 then
        xray.Enabled = true
    else
        Xray.Enabled = false
    end

end)
thin thorn
#

okay

thin thorn
#

XDD

azure ferry
#

tab doesnt work im trying by best lol

atomic sandal
#

lol

thin thorn
#

like this?

#

i think

atomic sandal
#

why is it a local script

thin thorn
#

OHH

#

NOTHING

#

WAIT

#

speed... is not... yea

atomic sandal
#

what

#

??

azure ferry
#

oh try using humanoid.WalkSpeed instead of the variable

atomic sandal
#

WalkSpeed.Value would return nil

atomic sandal
thin thorn
#

:C

atomic sandal
#

i dont see anything wrong

azure ferry
#

capital S

thin thorn
#

i saw it

atomic sandal
#

its WalkSpeed

thin thorn
#

OHH

azure ferry
atomic sandal
#

oh

#

so speed.Value?

thin thorn
#

GUYSSS THANK YOU SO MUTCHCH

atomic sandal
#

np

#

it worked?

azure ferry
#

ayy nice

thin thorn
#

YEAH

atomic sandal
#

nice

thin thorn
#

THANK YOU bye!!