In my game, you get get different souls that do different things. When the player equips this soul, its supposed to increase the players jump power and walk speed, but it wont work
(its a normal script located in StarterPlayerScripts)
local IntTrue = game.Players.LocalPlayer.SelectedSOUL.Value.Name == "Integrity"
if IntTrue then
script.Parent.HumanoidRootPart.Humanoid.WalkSpeed = script.Parent.HumanoidRootPartHumanoid.WalkSpeed + 90
script.Parent.HumanoidRootPartHumanoid.JumpPower = script.Parent.HumanoidRootPartHumanoid.JumpPower + 90
end
But it wont work. do i have to make it a local script? or is something wrong with my code?
the output error is: 15:29:43.946 - Workspace.trimarkander.Script:1: attempt to index nil with 'SelectedSOUL'
(P.S. im new to scripting, so sorry if im really dumb rn)

5 comments
The script is inside the character?
Yes
the output Error says: 13:19:39.563 - Workspace.trimarkander.Effect:5: Expected , got 'end'
it doesn't increase my JumpPower or WalkSpeed either
Depending on how equipping items works in your game, you have to make the script check for it and apply the boost then