Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.ShowDailyReward.OnClientEvent:Connect(function(hoursToNextReward,rewardAmount)
- script.Parent.Enabled = true
- script.Parent.Frame.Comeback.Text = "ComeBack in "..hoursToNextReward.." hours for you next reward"
- script.Parent.Frame.Claim.MouseButton1Click:Connect(function()
- game.ReplicatedStorage.ClaimReward:FireServer()
- script.Parent.RewardNotice.Text = "πYou Have "..rewardAmount.." Coinsπ"
- script.Parent.RewardNotice:TweenSizeAndPosition(UDim2.new(0,6,0,0,15,,0),UDim2.new(0,5,0,0,5,0))
- script.Parent.Frame.Visible = false
- wait(1.5)
- script.Parent.RewardNotice:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(0,5,0,0,5,0))
- wait(1.5)
- script.Parent.Enabled = false
- script.Parent.Frame.Visible - true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement