Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- How to Use?
- -- To use this you can enter Math Equations for it to solve this and
- -- You also can do it! (idk what but it's made by Chat GPT and what the af bc idk why it did dis shit
- -- and
- -- just because it happend idk how to explain but you Can only subtract or add lol whether those both two no diving possible
- -- even also like that if it would then idk what but im too lazy to fix this because chat gpt
- -- always types it so slowly lol
- -- the math results are in console
- -- and i don't think chat gpt understood me correct enough...
- -- hes just too lazy i think because in the console the math.equals those all use words instead of numbers lol)
- -- and i think its so dumb cuz idk lol to lazy lol
- -- alr enjoy the script nobos
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Button = Instance.new("TextButton")
- local TextBox = Instance.new("TextBox")
- local IntroFrame = Instance.new("Frame")
- local Circle = Instance.new("ImageLabel")
- local Rectangle = Instance.new("ImageLabel")
- local TitleText = Instance.new("TextLabel")
- ScreenGui.Parent = game.CoreGui
- IntroFrame.Parent = ScreenGui
- IntroFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- IntroFrame.BackgroundTransparency = 0.8
- IntroFrame.Size = UDim2.new(1, 0, 1, 0)
- Circle.Parent = IntroFrame
- Circle.BackgroundTransparency = 1
- Circle.Size = UDim2.new(0, 150, 0, 150)
- Circle.Position = UDim2.new(0.5, -75, 0.5, -75)
- Circle.Image = "rbxassetid://10714612160"
- Circle.ImageColor3 = Color3.fromRGB(255, 255, 255)
- Rectangle.Parent = IntroFrame
- Rectangle.BackgroundTransparency = 1
- Rectangle.Size = UDim2.new(0, 200, 0, 50)
- Rectangle.Position = UDim2.new(0.5, -100, 0.5, -25)
- Rectangle.Image = "rbxassetid://10714612160"
- Rectangle.ImageColor3 = Color3.fromRGB(255, 255, 255)
- TitleText.Parent = IntroFrame
- TitleText.Text = "ZYXNECULATOR"
- TitleText.Font = Enum.Font.GothamBold
- TitleText.TextSize = 36
- TitleText.TextColor3 = Color3.fromRGB(255, 87, 34)
- TitleText.BackgroundTransparency = 1
- TitleText.Position = UDim2.new(0.5, -200, 0.4, -100)
- TitleText.Size = UDim2.new(0, 400, 0, 100)
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- Frame.Size = UDim2.new(0, 300, 0, 200)
- Frame.Position = UDim2.new(0.5, -150, 0.5, -100)
- Frame.BorderSizePixel = 0
- Frame.BackgroundTransparency = 0.2
- Frame.Visible = false
- Button.Parent = Frame
- Button.Text = "Calculate"
- Button.Position = UDim2.new(0.1, 0, 0.7, 0)
- Button.Size = UDim2.new(0.8, 0, 0.2, 0)
- Button.Font = Enum.Font.GothamBold
- Button.TextSize = 20
- Button.TextColor3 = Color3.fromRGB(255, 255, 255)
- Button.BackgroundColor3 = Color3.fromRGB(255, 87, 34)
- Button.BackgroundTransparency = 0.1
- Button.BorderSizePixel = 0
- Button.AutoButtonColor = false
- Button.ClipsDescendants = true
- Button.ZIndex = 2
- local UICorner = Instance.new("UICorner")
- UICorner.CornerRadius = UDim.new(0, 12)
- UICorner.Parent = Button
- local UIGradient = Instance.new("UIGradient")
- UIGradient.Parent = Button
- UIGradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0.0, Color3.fromRGB(255, 87, 34)),
- ColorSequenceKeypoint.new(1.0, Color3.fromRGB(255, 195, 113))
- }
- UIGradient.Rotation = 90
- TextBox.Parent = Frame
- TextBox.Position = UDim2.new(0.1, 0, 0.2, 0)
- TextBox.Size = UDim2.new(0.8, 0, 0.3, 0)
- TextBox.Font = Enum.Font.Gotham
- TextBox.TextSize = 20
- TextBox.Text = ""
- TextBox.PlaceholderText = "Enter math equation"
- TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- TextBox.BorderSizePixel = 0
- TextBox.ClearTextOnFocus = true
- local TextBoxCorner = Instance.new("UICorner")
- TextBoxCorner.CornerRadius = UDim.new(0, 8)
- TextBoxCorner.Parent = TextBox
- local numberToWords = {
- ["1"] = "One",
- ["2"] = "Two",
- ["3"] = "Three",
- ["4"] = "Four",
- ["5"] = "Five",
- ["6"] = "Six",
- ["7"] = "Seven",
- ["8"] = "Eight",
- ["9"] = "Nine",
- ["0"] = "Zero"
- }
- local function toWordFormat(equation, result)
- local wordsEquation = equation:gsub("%d", function(digit)
- return numberToWords[digit] or digit
- end)
- return wordsEquation .. "=" .. numberToWords[tostring(result)] .. "(" .. result .. ")"
- end
- local function introAnimation()
- local duration = 2.59330
- local elapsed = 0
- while elapsed < duration do
- local progress = elapsed / duration
- local rotation = math.sin(progress * math.pi * 2) * 360
- Rectangle.Rotation = rotation
- local scale = math.cos(progress * math.pi) * 0.5 + 0.5
- Circle.Size = UDim2.new(0, 150 * scale, 0, 150 * scale)
- Rectangle.Size = UDim2.new(0, 200 * scale, 0, 50 * scale)
- local textColor = Color3.new(1, progress, 0)
- TitleText.TextColor3 = textColor:Lerp(Color3.fromRGB(255, 255, 255), progress)
- elapsed += game:GetService("RunService").RenderStepped:Wait()
- end
- TitleText.TextColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Visible = true
- IntroFrame:Destroy()
- end
- introAnimation()
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- Frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- Frame.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- Button.MouseButton1Click:Connect(function()
- local input = TextBox.Text
- local success, result = pcall(function()
- return loadstring("return " .. input)()
- end)
- if success then
- print(input .. " = " .. result)
- print(toWordFormat(input, result))
- else
- print("Error in calculation.")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement