Issue:
I have Player A and Player B. They both choose if they want to be a human or a fish. Once they both get teleported, Player B (who chose as the fish) is supposed to get turned into a fish character and get attached to a part named “AnchoredPart” inside a “Bucket” model which is inside of Player A’s character’s Right Hand. To be clear, here is the hierarchy:
|— Character A
|— Right Hand
|— Bucket
|— Anchored Part
|— Fish character attached to the Anchored Part
I have also made the all of the Bucket parts Massless as well as all the Fish character model’s parts are Massless.
My code is working fine, there are no errors or warnings either. The issue is, Player A starts to “limp” while carrying Player B inside the bucket. I have also set the NetworkOwner property of Player B to Player A so there are no physics issue. I have attached my code for reference.
Code:
Code
----------------------------------------------
-- MAKING THE OTHER PLAYER INTO A FISH
----------------------------------------------
local function MakePlrToFish(fishPlr, humPlr)
fishPlr:LoadCharacter()
task.wait()
local fishCharacter = SS.Models.StarterCharacter:Clone()
fishCharacter.Name = fishPlr.Name
fishPlr.Character = fishCharacter
fishCharacter.Parent = game.Workspace
if bktWater then
local hrp = fishCharacter:WaitForChild("HumanoidRootPart")
-- Attaching fish to the bucket water
local weld = Instance.new("Motor6D")
weld.Name = "FishAttachment"
weld.Parent = anchoredPart
weld.Part0 = anchoredPart
weld.Part1 = hrp
-- Disabling movement
local humanoid = fishCharacter:FindFirstChild("Humanoid")
if humanoid then
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
local rootPart = fishCharacter:FindFirstChild("HumanoidRootPart")
end
-- Ensuring the carrying player has proper control
local carryingPlayer = humPlr
if carryingPlayer then
bktWater:SetNetworkOwner(carryingPlayer) -- Assign ownership to bucket holder
end
end
end
I have tried a lot of ChatGPT but it still does not seem to work. I have also attached a short video of my issue. Any help is appreciated. Thank you.