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

if button gui is pressed it morphs you a (custom morph)? that can be seen by other players too. [closed]

Asked by 2 years ago
Edited 2 years ago

So how do I make a gui button that when you press it will morph you to a (custom character) that can be seen on other players client, Or a morph button part teleports to you're LocalPlayer when you press the button gui (Without killing the player) (Thanks in Advance!)

0
why has this not been answered yet LordPoop23124324243 2 — 2y
0
I don't know why it hasn't because heaps of people have viewed it. Sadly I don't have an answer. So sorry! EmJay10101 9 — 2y

Locked by Xapelize

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
extrorobo 104
2 years ago
Edited by Xapelize 2 years ago

first create like whatever character you want. the add this script under that model

local function transform(char,model)
    local model=model:Clone()
    model:SetPrimaryPartCFrame(char.PrimaryPart.CFrame+Vector3.new(0,model:GetExtentsSize().Y,0))
    local h=char.Humanoid
    local function unkill()
        h:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
    end
    for i,v in pairs(h:GetPlayingAnimationTracks()) do
        v:Stop()
    end
    h.Parent=game.ReplicatedStorage
    unkill()
    for i,v in pairs(char:GetChildren()) do
        if v.Name~="Humanoid" and not v:IsA("Script") and not v:IsA("LocalScript") then
            v:Destroy()
        end
    end
    local hipheight=model.Humanoid.HipHeight
    local primary=model.PrimaryPart
    for i,v in pairs(model:GetChildren()) do
        if v.Name~="Humanoid" then
            v.Parent=char
        end
    end
    -- synchronize.
    model:Destroy()
    char.PrimaryPart=char.HumanoidRootPart
    h.HipHeight=hipheight
    h.Parent=char
    char.PrimaryPart=char.HumanoidRootPart
    h.HipHeight=hipheight
    local plr=game.Players:GetPlayerFromCharacter(char)
    if plr then -- thanks roblox.
        game.ReplicatedStorage.HipHeight:FireClient(plr,hipheight)
    end
end

transform(game.Players["you"].Character,workspace.Dummy)
Ad
Log in to vote
0
Answered by 2 years ago

use a remote event (search on youtube remote event tutorial)