сделай чтобы при нажатии на кнопку в этом скрипте отбирали 200 Candy и прибавляли 1 Spin local Spin = script.Parent:WaitForChild("Spin") local BuyButton = script.Parent:WaitForChild("Buybutton") local DataStore = game:GetService("DataStoreService"):GetDataStore("CVNXAN")   local TweenService = game:GetService("TweenService")  local Debounce = false local SpinEvet = game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("Spin")  local SpinModule = require(game:GetService("ReplicatedStorage"):WaitForChild("SpinModule"))  local Player = game:GetService("Players").LocalPlayer local PlayerStats = Player:WaitForChild("PlayerStats") local LeaderStats = Player:WaitForChild("LeaderStats") local Candy = LeaderStats:WaitForChild("Spin") local Spin = PlayerStats:WaitForChild("Spin")  local SpinStats = PlayerStats:WaitForChild("Spin") local SpinTime = PlayerStats:WaitForChild("SpinTime")  local function saniyeDakikaSaniyeCevirString(saniye) 	local dakika = math.floor(saniye / 60) 	local kalanSaniye = saniye % 60  	return string.format("%02d:%02d", dakika, kalanSaniye) end  local function SpinError() 	spawn(function() 		local SpinError = script.SpinError:Clone() 		SpinError.Size = UDim2.fromScale(0,0) 		SpinError.Parent = script.Parent:WaitForChild("NotEnough") 		local Animation = TweenService:Create(SpinError,TweenInfo.new(0.2),{Size = UDim2.fromScale(0.8,0.15)}) 		local CloseAnimation = TweenService:Create(SpinError,TweenInfo.new(0.1),{Size = UDim2.fromScale(0,0)}) 		Animation:Play() 		Animation.Completed:Connect(function() 			wait(0.35) 			CloseAnimation:Play() 			CloseAnimation.Completed:Connect(function() 				SpinError:Destroy() 			end) 		end) 	end) end  local function format(val) 	local suffixes = {'','k','m','b','t','qa','qi','sx','sp','oc'} 	for i=1, #suffixes do 		if tonumber(val) < 10^(i*3) then 			return math.floor(val/((10^((i-1)*3))/100))/(100)..suffixes[i] 		end	end end  local function SpinRewardModuleFired(Reward) 	local Animation = TweenService:Create(script.Parent.RewardName,TweenInfo.new(0.3),{Size = UDim2.fromScale(0.258,0.069)}) 	local Animation2 = TweenService:Create(script.Parent.RewardName,TweenInfo.new(0.2),{Size = UDim2.fromScale(0,0)}) 	script.Parent.RewardName.Text = "You won +"..format(SpinModule.Spin.Rewards[Reward].Amount).." "..SpinModule.Spin.Rewards[Reward].Reward 	script.Parent.RewardName.TextColor3 = SpinModule.Spin.Rewards[Reward].TextColor 	script.Parent.RewardName.Visible = true 	Animation:Play() 	Animation.Completed:Connect(function() 		spawn(function() 			wait(1) 			Animation2:Play() 			Animation2.Completed:Connect(function() 				script.Parent.RewardName.Visible = false 			end) 		end) 	end) end    script.Parent.SpinTimer.Text = "Spin : "..SpinStats.Value.." ("..saniyeDakikaSaniyeCevirString(SpinTime.Value)..")"  SpinTime.Changed:Connect(function() 	script.Parent.SpinTimer.Text = "Spin : "..SpinStats.Value.." ("..saniyeDakikaSaniyeCevirString(SpinTime.Value)..")" end)  SpinStats.Changed:Connect(function() 	script.Parent.SpinTimer.Text = "Spin : "..SpinStats.Value.." ("..saniyeDakikaSaniyeCevirString(SpinTime.Value)..")" end)  local ImageAnimations = { 	Reward1 = 26, 	Reward2 = 334, 	Reward3 = 130, 	Reward4 = 78, 	Reward5 = 283, 	Reward6 = 232, 	Reward7 = 180, }  local function endanimation() 	local Animation1 = TweenService:Create(Spin,TweenInfo.new(1),{Rotation = 0}) 	Animation1:Play() 	Animation1.Completed:Connect(function() 		Debounce = false 	end) end  local function animation() 	local RandomTable = SpinModule.getRandomReward() 	local Animation1 = TweenService:Create(Spin,TweenInfo.new(5),{Rotation = 360*SpinModule.Spin.SpinTime+ImageAnimations[RandomTable]}) 	Animation1:Play() 	Animation1.Completed:Connect(function() 		SpinRewardModuleFired(RandomTable) 		SpinEvet:FireServer(RandomTable) 		wait(1) 		endanimation() 	end) end local AnimationButtonImage1 = TweenService:Create(BuyButton,TweenInfo.new(0.2),{Size = UDim2.fromScale(0.21,0.21)}) local AnimationButtonImage2 = TweenService:Create(BuyButton,TweenInfo.new(0.2),{Size = UDim2.fromScale(0.17,0.17)})  BuyButton.MouseButton1Click:Connect(function()  	AnimationButtonImage1:Play() 	AnimationButtonImage1.Completed:Connect(function() 		AnimationButtonImage2:Play() 	end)  		if Candy.Value >= 200 then 			if Debounce == false then 				Debounce = true 			Candy.value -= 200 			Spin.vlaue += 1 				animation() 			end 		else 			SpinError() 		end 	end)