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.
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.
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.