Well i have a script that will work maybe the first time. And i dont think works if you put it on an accessory. And im just so confused. I dont expect an answer. But heres the Pick Up script that barely ever works Script
local event = game.ReplicatedStorage.PickupPlayer
local drop = game.ReplicatedStorage.Drop
event.OnServerEvent:Connect(function(Player, FromP, ToP)
local RayCast = Ray.new(FromP, (ToP-FromP).unit*100)
local part = game.Workspace:FindPartOnRay(RayCast, Player.Character, false, true)
if part then
print(part)
if part.Parent:FindFirstChildWhichIsA("Humanoid") or part.Parent.ClassName == "Accessory" then
local plrchar = Player.Character
local char = part.Parent or part.Parent.Parent
local Hum = char:FindFirstChild("Humanoid") --I THINK I HAVE TO CHANGE THIS LINE
local PickUps = Player:FindFirstChild("leaderstats"):FindFirstChild("Pick Ups")
local holding = Player.leaderstats:FindFirstChild("Holding")
if not char:FindFirstChild("Weld") then
if holding.Value == false then
Hum.PlatformStand = true --THIS LINE IS ERRORING
local weld = Instance.new("Weld", plrchar)
weld.Part0 = char.HumanoidRootPart
weld.Part1 = Player.Character.HumanoidRootPart
weld.C0 = char.HumanoidRootPart.CFrame:inverse()
weld.C1 = Player.Character.HumanoidRootPart.CFrame:inverse()
char.HumanoidRootPart.Position = Player.Character.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
holding.Value = true
PickUps.Value = PickUps.Value + 1
drop:FireClient(Player, char.Parent)
end
end
end
end
end)
Feel free to correct me on more effective ways to make it. I have no ideas. I thought this would work. Sometimes i get an error about PlatformStand being nil, So i think i did something wrong with the humanoid variable. Thanks

2 comments
Could you explain what the script is trying to do first?
Pick up a player, Put them a few studs above you