Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My morph script kills players when playing online but not in studio. Why does this happen ?

Asked by 8 years ago
local Player=game.Players.LocalPlayer
script.Parent.MouseButton1Down:connect(function()
    script.Parent.Parent.Visible = false
    local Morph=game.ReplicatedStorage.Gray:Clone()
    Morph.Parent=workspace
    Morph.PrimaryPart=Morph:FindFirstChild("Torso")
    Morph:SetPrimaryPartCFrame(Player.Character.Torso.CFrame)
    Morph:MakeJoints()
    Player.Character=Morph
    workspace.CurrentCamera.CameraSubject=Morph

end)







This is supposed to make a player a morph I made but the problem is that it is fine in studio but online the player dies from becoming the morph.

0
From a first look I'd say its something to do with the change. I don't know why it works in studio, but try something different rather than completely changing the character. Ethan_Waike 156 — 8y
0
Is your Morph just a default character model with some extra parts? Try welding all of the parts to the morphs body parts, and then welding the morphs body parts to the players body parts. Chronomad 180 — 8y

Answer this question