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!)
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)
use a remote event (search on youtube remote event tutorial)
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?