Script not finding property

My script straight up isn’t finding a property? I thought this was impossible.
Here’s the error


Here’s the troublesome code.

script.Parent.Parent.Parent:FindFirstChild("Humanoid").PlatformStand = false

Here’s the whole script, it is parented to person under a LocalScript that’s under a normal script by a tool.

local scr = script:WaitForChild("LocalScript")
local clo = script.war:Clone()
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr, player)
	scr.Parent = player.PlayerGui
	clo.Parent = player
	scr.Enabled = true
end)
wait (2.9)
script.Parent.Parent.Parent:FindFirstChild("Humanoid").PlatformStand = false

If there is anything else that would make this easier to solve please tell me! I’ve been working on this tool for a couple hours now and I’m ready to be done.

4 Likes

only solution I could think of is literally making sure you find the character then you find the humanoid
if this code gets the player script.Parent.Parent.Parent then you need to make sure you make it into this: script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid").PlatformStand = false

No that’s not it, I know this because it works sometimes, just not if you’re holding the tool, it also causes the other player’s tool to disappear for some reason too.

I don’t know the context of what you’re trying to achieve, can you please add more clarification to your initial post, possibly include a snippet of the localscript and the serverscript, as well as a video demonstration of what’s occuring. that will be the best way for you to receive more accurate assistance.

Can you show where your script is located in explorer?

I can’t, my computer can’t run a two person test server.

Unequipped Tools get put back into the Player’s Backpack when unequipped, and if ur script happens to run when that happens (Assuming the script is parented under the Tool) then it wont be able to access the Player’s Humanoid using script.Parent.Parent.Parent:FindFirstChild("Humanoid").PlatformStand since it changes location

It’s not unequipping, it’s fully breaking the backpack. Player1 shouldn’t be getting anything done with their backpack because every script is done to Player2, the victim.

This might just be the issue though, now to fix the backpack turning off for the shooter if I can manage to find out how to do that. Thank you!

1 Like

That’s not what the user is asking. They are asking for a screenshot of both the script’s locations in explorer

I know, the scripts while in use would require a second person because they get parented under the victim.

Try using WaitForChild() instead of FindFirstChild()