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

How can I modify this so It gives you a morph you cannot remove?

Asked by 2 years ago

The title says It all

Also Ignore the word: "Troll". It's for a game about trolls

Script:

local tool = script.Parent
local Debounce = false
local DrinkingAnimation = tool.Animation or tool:WaitForChild("Animation")
local Rep = game.ReplicatedStorage
local CharacterFolder = Rep.Morphs
local char = tool.Parent

tool.Activated:Connect(function()
    if not Debounce then
        Debounce = true
        tool:WaitForChild("Drink"):Play()
        local AnimationTrack = tool.Parent.Humanoid:FindFirstChild("Animator"):LoadAnimation(DrinkingAnimation)
        AnimationTrack:Play()
        wait(1.5)
        local player = game.Players:GetPlayerFromCharacter(tool.Parent)

        local plrRoot = player.Character:FindFirstChild("HumanoidRootPart") or player.Character.Parent:FindFirstChild("Torso")

        local AveragePlayer = CharacterFolder["EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY"]:Clone()
        AveragePlayer.Name = player.Name
        player.Character = AveragePlayer

        local rootPart = AveragePlayer:FindFirstChild("HumanoidRootPart") or AveragePlayer:FindFirstChild("Torso")

        if rootPart and plrRoot then
            rootPart.CFrame = plrRoot.CFrame
        end

        AveragePlayer.Parent = workspace
        AveragePlayer.Humanoid.DisplayName = "EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY EVIL TROLL FROM ESCAPE THE EVIL TROLL OBBY"
        Debounce = false
        tool:Destroy()
    end
end)

Answer this question