basically im trying to parent this clone of a localscript that is parented to a script in serverscriptservice to the player's character
but when i play the game the localscript wasnt there in the character model but the output printed ok which means it did work so i dont know where it went
local Seat = workspace.Model.Seat
Seat.ChildAdded:Connect(function(Child)
if Child:IsA("Weld") and Child.Name == "SeatWeld" then
local Player = game.Players:GetPlayerFromCharacter(Child)
local CloneScriptChild = script.LocalScript:Clone()
CloneScriptChild.Parent = Player print("OK!")
Seat.ChildRemoved:Connect(function(Child)
CloneScriptChild:Destroy() print("NOOOOOOOOOOOOOOOO")
end)
end
end)
i dont know if im just being stupid or not

4 comments
When the player sits in the seat the child that is a weld not the player object
clarifying above, the player is not parented to a seat when they sit in it, instead what's parented to the seat is a weld which attaches the player's humanoidrootpart to the seat
how do i fix it tho?
see my answer i posted