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

someone help me with this morph script I want leave it for the gui button?

Asked by 2 years ago

could someone explain to me how I make this script of mine only be executed for a player who presses the button to equip the morph but only he who will get the morph and but no one only if someone presses the button to equip the morph will keep the morph and the other players will be able to see the morph he is using

functional script morph final line

Players.PlayerAdded:connect(function(Player)
    Player.CharacterAdded:connect(function(Character)
        wait(2)
        visible = false

        Resh.OnServerEvent:Connect(function()
            Body(1,1,1,Character)
            MorphUser(Player,"MTFGUI","TaskForcesUnits","Resh-1","Morph")
            Finale(Character)
            Finale0(Character)
        end)
    end)
end)

button local script

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ReshEvent = ReplicatedStorage["Resh-1"]
local Button = script.Parent

Button.MouseButton1Click:Connect(function()
    ReshEvent:FireServer()
end)

Answer this question