I am trying to get the script below to detect if a value is over 10 or under -10
The Script In Question:
local players = game:GetService(“Players”)
local player = players.LocalPlayer
local id = 4189170776180288
local planet = game.Workspace:WaitForChild(“Planet”)
while true do
if script.Parent.Parent.Parent.Parent.Gamepass.Cangooverten == true then
else
if script.Parent.RotSpeed.Value < 10 or script.Parent.RotSpeed.Value > -10 then
planet.Orientation = planet.Orientation + Vector3.new(0,script.Parent.Text,0)
else
game:GetService(“MarketplaceService”):PromptGamePassPurchase(player, id)
script.Parent.RotSpeed.Value = 10
end
end
wait(0.00001)
end
local players = game:GetService("Players")
local player = players.LocalPlayer
local id = 4189170776180288
local planet = game.Workspace:WaitForChild("Planet")
while true do
if script.Parent.Parent.Parent.Parent.Gamepass.Cangooverten == true then
else
if script.Parent.RotSpeed.Value > 10 then
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, id)
script.Parent.RotSpeed.Value = 10
else
if script.Parent.RotSpeed.Value < -10 then
game:GetService("MarketplaceService"):PromptGamePassPurchase(player, id)
script.Parent.RotSpeed.Value = -10
end
end
end
wait(0.0001)
end