Professional Documents
Culture Documents
How To Make A Morgh GUI in Roblox (Scripts)
How To Make A Morgh GUI in Roblox (Scripts)
Changelocal:
script.Parent.MouseButton1Click:Connect(function(player)
if isCool == false then
isCool = true
local charactername = characterValue.Value
changeEvent:FireServer(charactername)
end
end)
changeEvent.OnClientEvent:Connect(function()
wait(coolTime)
isCool = false
end)
___________________________________________________________________________
Other script youll see in the vid:
changeEvent.OnServerEvent:Connect(function(player,chosenCharacter)
if charsFolder:FindFirstChild(chosenCharacter) then
local newChar = charsFolder:FindFirstChild(chosenCharacter):Clone()
local plrChar = player.Character
if newChar:FindFirstChild("HumanoidRootPart") then
newChar.PrimaryPart = newChar.HumanoidRootPart
newChar:SetPrimaryPartCFrame(plrChar.HumanoidRootPart.CFrame)
elseif newChar:FindFirstChild("Torso") and not
newChar:FindFirstChild("HumanoidRootPart") then
newChar.PrimaryPart = newChar.Torso
newChar:SetPrimaryPartCFrame(plrChar.Torso.CFrame)
end
if player.Character:FindFirstChild("Animate") then
local anim = player.Character:FindFirstChild("Animate"):Clone()
anim.Parent = newChar
end
newChar.Name = player.Name
player.Character = newChar
newChar.Parent = workspace
else
warn("character doesnt exist or something went wrong.")
end
end)________________________________________________________________________
__