I made a premium air conditioner which requires Roblox Premium in order for you to turn it on or off!
Base code:
local LVRMotor = script.Parent.Parent.Parent.Indoor.MotorLVR
local INDMotor = script.Parent.Parent.Parent.Indoor.MotorIND
local OUTMotor = script.Parent.Parent.Parent.Outdoor.MotorOUT
local Beep = script.Parent.Parent.Parent.Indoor.Fan.chime
local Wind = script.Parent.Parent.Parent.Indoor.Fan.Sound
local Cmprs = script.Parent.Parent.Parent.Outdoor.Fan.OUTDOOR
local OpLamp = script.Parent.Parent.Parent.Indoor.Operation
local MS = game:GetService("MarketplaceService")
local ClickD = script.Parent.ClickDetector
IsOn = false
ClickD.MouseClick:Connect(function(playerWhoClicked: Player)
if playerWhoClicked.MembershipType == Enum.MembershipType.Premium then
if IsOn == true then
Beep:Play()
script.Parent.Parent.Screen.Celz.SurfaceGui.SIGN.Visible = false
script.Parent.Parent.Screen.Temp.SurfaceGui.SIGN.Visible = false
script.Parent.Parent.Screen.Cool.Material = "Metal"
script.Parent.Parent.Screen.FanIC.Material = "Metal"
script.Parent.Parent.Screen.Fan1.Material = "Metal"
script.Parent.Parent.Screen.Fan2.Material = "Metal"
script.Parent.Parent.Screen.Fan3.Material = "Metal"
ClickD.MaxActivationDistance = 0
LVRMotor.FrontParamB = 0.01
wait(3)
LVRMotor.FrontParamB = 0
INDMotor.FrontParamB = 0
OUTMotor.FrontParamB = 0
Wind.Playing = false
Cmprs.Playing = false
OpLamp.Material = "SmoothPlastic"
IsOn = false
wait(4)
ClickD.MaxActivationDistance = 10
else
Beep:Play()
script.Parent.Parent.Screen.Celz.SurfaceGui.SIGN.Visible = true
script.Parent.Parent.Screen.Temp.SurfaceGui.SIGN.Visible = true
script.Parent.Parent.Screen.Cool.Material = "Neon"
script.Parent.Parent.Screen.FanIC.Material = "Neon"
script.Parent.Parent.Screen.Fan1.Material = "Neon"
script.Parent.Parent.Screen.Fan2.Material = "Neon"
script.Parent.Parent.Screen.Fan3.Material = "Neon"
ClickD.MaxActivationDistance = 0
OpLamp.Material = "Neon"
LVRMotor.FrontParamB = -0.01
wait(3)
LVRMotor.FrontParamB = 0
INDMotor.FrontParamB = 2
OUTMotor.FrontParamB = 1
Wind.Playing = true
Cmprs.Playing = true
IsOn = true
wait(4)
ClickD.MaxActivationDistance = 10
end
else
MS:PromptPremiumPurchase(playerWhoClicked)
end
end)
Original Model: Luxiar Air Conditioner | V2 (Split type) - Creator Store