Hey there!
So i’m making a button for a chosen player that allows them to switch monster mode on and off. All monster mode really is, is shifting the player’s character from their original look to the monster skin (Cloning the monster skin from ServerStorage and making it their character). Iv’e already got that system done. However, i need for the player to be able to go back to human mode (their original look), and i’m not sure how to get their original character back once their in the monster skin.
Here’s the scripts:
SCRIPT IN BUTTON
local module = require(game.ServerScriptService.GameLogic.MonsterButtons)
local player = script.Parent.Parent.Parent.Parent
local MonsterOn = false
local OriginalCharacter = player.Character
script.Parent.MouseButton1Click:Connect(function()
if MonsterOn == false then
MonsterOn = true
script.Parent.Image = script.Parent.On.Value
module.Monster(player)
elseif MonsterOn == true then
MonsterOn = false
script.Parent.Image = script.Parent.Off.Value
module.Player(player, OriginalCharacter)
end
end)
MODULE SCRIPT IN SERVERSCRIPTSERVICE UNDER 'GAMELOGIC’
local module = {}
function module.Monster(player)
local character = player.Character
local Position = player.Character.HumanoidRootPart.CFrame
local Monster = game.ServerStorage.Monster:Clone()
Monster.Name = player.Name
player.Character = Monster
Monster.Parent = workspace
Monster.HumanoidRootPart.CFrame = Position
end
function module.Player(player, OriginalCharacter)
--All the stuff
end
return module
Any help on how to save the player’s original character’s model would really be appreciated