#The script doesnt work, please help!

42 messages · Page 1 of 1 (latest)

terse crown
#

you are missing an end

#

you have three if statements and two ends

#

hence why the end for the function is pulling an error

#

@rugged gust

rugged gust
#

i added the end and all of the error are gone but it still ant working

terse crown
#

alright whats happening and what are the errors and what is it meant to do

rugged gust
#

wdym

#

i changed a lil tho to this

#

@terse crown

terse crown
#

is this a local script or no?

rugged gust
#

its a local yeah

terse crown
#

wait what are the errors

rugged gust
#

there arent any errors its just not working.

terse crown
#

wait I think I see it

#

the parent of tool is backpack

rugged gust
#

yeah handle

terse crown
#

you are looking for a humanoid in the backpack

rugged gust
#

wot

terse crown
#

local idle = tool.parent:FindFirstChild("Humanoid")

#

assuming the player has the tool

rugged gust
#

what are you trying to say?

terse crown
#

can you send a picture of your explorer around your tool

rugged gust
terse crown
#

yeah you are going from LinkSword > BackPack > Humanoid (Which doesnt exist)

rugged gust
#

oh

#

what am i supossed to improve then?

terse crown
#

use the players service and get the local player

rugged gust
#

so

dawn sorrelBOT
#

studio** You are now Level 3! **studio

rugged gust
#

local player = player.service?

#

or something

terse crown
#

local PLayers = game:GetService("Players")
local player = PLayers.LocalPlayer

rugged gust
#

alright

#

so

#

local Idle = tool.Parent.player.Animator:LoadAnimation(IdleAnim)

terse crown
#

local PLayers = game:GetService("Players")
local player = PLayers.LocalPlayer

local character = player.Character

local idle = character:WaitForChild("Humanoid").Animator:LoadAnimation(IdleAnim)

rugged gust
#

thank you

#

hey

#

@terse crown

#

do you mind helping me fix this bug?