Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RedeemFrame = script.Parent.RedeemFrame
- local CodeBox = RedeemFrame.CodeBox
- local RedeemButton = RedeemFrame.RedeemButton
- local ToggleButton = script.Parent.ToggleButton
- ToggleButton.MouseButton1Click:Connect(function()
- RedeemFrame.Visible = not RedeemFrame.Visible
- end)
- RedeemButton.MouseButton1Click:Connect(function()
- local Code = CodeBox.Text
- local Redeemed = game.ReplicatedStorage.RedeemCode:InvokeServer(Code)
- if Redeemed == true then
- CodeBox.Text = ""
- CodeBox.PlaceholderText = "Redeemed Code!"
- wait(1)
- CodeBox.PlaceholderText = "Twitter Code Here"
- else
- CodeBox.Text = ""
- CodeBox.PlaceholderText = "Invalid Code"
- wait(1)
- CodeBox.PlaceholderText = "Twitter Code Here"
- end
- end)
Add Comment
Please, Sign In to add comment