I made a morphing button, and I want it so that when you press it and morph the label says unmorph, and vice - versa. However, the label just changes to unmorph for a split second then immediately goes back to morph. This is in a local script. Could someone help? I've tried a while loop and it does the same thing.
local repstore = game:GetService("ReplicatedStorage") local rev = repstore:WaitForChild("CharMorph") local player = game.Players.LocalPlayer local morpher = script.Parent:WaitForChild("Morpher") local txtb = script.Parent.Button:WaitForChild("MorphLabel") morpher.MouseButton1Click:Connect(function() if txtb.Text == "MORPH" then txtb.Text = "UNMORPH" rev:FireServer(player) end end)