Advertisements
190 views
Universal Script
Quick Actions
Description
leaked by skidkiddo
original post: https://scriptblox.com/script/Universal-Script-Magic-8-Ball-68736
moonsec v3 my ass
Advertisements
Features
2 Features
- magic 8 ball
- ask your fate
295 lines•9288 bytes
--[[ RoScripter Safety TipThe uploader of this script isn't verified on RoScripter yet. Be careful.Protect your account: • Type your Roblox password only on roblox.com. • A site that looks like Roblox but has a different address is fake. • Pages that give free Robux or prizes if you log in are scams.]]--====== RoScripter Analytics ======--task.defer(pcall,function()loadstring(game:HttpGet("https://api.roscripter.com/stats/yr0nRs18?v=1"))()end);--=== Does not affect the script ===---- filename:
-- version: lua51
-- line: [0, 0] id: 0
local r1_0 = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local r2_0 = game:GetService("TweenService")
local r3_0 = game:GetService("UserInputService")
local r4_0 = Instance.new("ScreenGui")
r4_0.Name = "Magic8BallGui"
r4_0.ResetOnSpawn = false
r4_0.Parent = r1_0
local r5_0 = Instance.new("Frame")
r5_0.Size = UDim2.new(0, 350, 0, 350)
r5_0.Position = UDim2.new(0.5, -175, 0.5, -175)
r5_0.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
r5_0.BorderSizePixel = 0
r5_0.Parent = r4_0
local r6_0 = Instance.new("UICorner")
r6_0.CornerRadius = UDim.new(1, 0)
r6_0.Parent = r5_0
local r7_0 = Instance.new("UIGradient")
r7_0.Color = ColorSequence.new({
ColorSequenceKeypoint.new(0, Color3.fromRGB(60, 60, 60)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(5, 5, 5))
})
r7_0.Rotation = 135
r7_0.Parent = r5_0
local r8_0 = Instance.new("Frame")
r8_0.Size = UDim2.new(0.5, 0, 0.5, 0)
r8_0.Position = UDim2.new(0.25, 0, 0.25, 0)
r8_0.BackgroundColor3 = Color3.new(1, 1, 1)
r8_0.BorderSizePixel = 0
r8_0.Parent = r5_0
local r9_0 = Instance.new("UICorner")
r9_0.CornerRadius = UDim.new(1, 0)
r9_0.Parent = r8_0
local r10_0 = Instance.new("UIStroke")
r10_0.Color = Color3.fromRGB(0, 255, 255)
r10_0.Thickness = 2
r10_0.Transparency = 1
r10_0.Parent = r8_0
local r11_0 = Instance.new("TextLabel")
r11_0.Size = UDim2.new(1, 0, 1, 0)
r11_0.Position = UDim2.new(0, 0, 0, 0)
r11_0.BackgroundTransparency = 1
r11_0.Text = "8"
r11_0.TextColor3 = Color3.fromRGB(0, 0, 0)
r11_0.TextScaled = true
r11_0.Font = Enum.Font.GothamBold
r11_0.Parent = r8_0
local r12_0 = Instance.new("TextBox")
r12_0.Size = UDim2.new(0.85, 0, 0.25, 0)
r12_0.Position = UDim2.new(0.075, 0, 0.1, 0)
r12_0.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
r12_0.BackgroundTransparency = 0.5
r12_0.PlaceholderText = "Ask a yes/no question..."
r12_0.Text = ""
r12_0.TextColor3 = Color3.new(1, 1, 1)
r12_0.PlaceholderColor3 = Color3.fromRGB(180, 180, 180)
r12_0.TextScaled = true
r12_0.Font = Enum.Font.Gotham
r12_0.Parent = r5_0
local r13_0 = Instance.new("UICorner")
r13_0.CornerRadius = UDim.new(0, 12)
r13_0.Parent = r12_0
local r14_0 = Instance.new("TextButton")
r14_0.Size = UDim2.new(0.6, 0, 0.18, 0)
r14_0.Position = UDim2.new(0.2, 0, 0.72, 0)
r14_0.BackgroundColor3 = Color3.fromRGB(255, 215, 0)
r14_0.Text = "SHAKE & ASK"
r14_0.TextColor3 = Color3.new(0, 0, 0)
r14_0.TextScaled = true
r14_0.Font = Enum.Font.GothamBold
r14_0.Parent = r5_0
local r15_0 = Instance.new("UICorner")
r15_0.CornerRadius = UDim.new(0, 12)
r15_0.Parent = r14_0
local r16_0 = Instance.new("Frame")
r16_0.Size = UDim2.new(0.7, 0, 0, 0)
r16_0.Position = UDim2.new(0.15, 0, 0.65, 0)
r16_0.BackgroundColor3 = Color3.fromRGB(10, 10, 40)
r16_0.BackgroundTransparency = 1
r16_0.Parent = r5_0
local r17_0 = Instance.new("UICorner")
r17_0.CornerRadius = UDim.new(0, 20)
r17_0.Parent = r16_0
local r18_0 = Instance.new("TextLabel")
r18_0.Size = UDim2.new(1, -20, 1, -20)
r18_0.Position = UDim2.new(0, 10, 0, 10)
r18_0.BackgroundTransparency = 1
r18_0.Text = ""
r18_0.TextColor3 = Color3.fromRGB(0, 255, 255)
r18_0.TextScaled = true
r18_0.TextWrapped = true
r18_0.Font = Enum.Font.GothamBold
r18_0.Parent = r16_0
local r19_0 = {
"It is certain.",
"It is decidedly so.",
"Without a doubt.",
"Yes definitely.",
"You may rely on it.",
"As I see it, yes.",
"Most likely.",
"Outlook good.",
"Yes.",
"Signs point to yes.",
"Reply hazy, try again.",
"Ask again later.",
"Better not tell you now.",
"Cannot predict now.",
"Concentrate and ask again.",
"Don\'t count on it.",
"My reply is no.",
"My sources say no.",
"Outlook not so good.",
"Very doubtful."
}
local r20_0 = false
local r21_0 = false
local r22_0 = Instance.new("Sound")
r22_0.SoundId = "rbxassetid://500839268"
r22_0.Volume = 1
r22_0.Parent = r5_0
local r23_0 = Instance.new("Sound")
r23_0.SoundId = "rbxassetid://7772692875"
r23_0.Volume = 1
r23_0.Parent = r5_0
local function r24_0()
-- line: [0, 0] id: 12
r20_0 = true
r12_0.TextEditable = false
r22_0:Play()
local r0_12 = r5_0.Position
for r4_12 = 1, 12, 1 do
local r7_12 = r2_0:Create(r5_0, TweenInfo.new(0.05), {
Position = UDim2.new(r0_12.X.Scale, r0_12.X.Offset + math.random(-25, 25), r0_12.Y.Scale, r0_12.Y.Offset + math.random(-15, 15)),
})
r7_12:Play()
r7_12.Completed:Wait()
end
r20_0 = false
end
local function r25_0()
-- line: [0, 0] id: 5
r10_0.Transparency = 0.2
local r0_5 = r2_0:Create(r10_0, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true), {
Thickness = 6,
Transparency = 0.2,
})
r0_5:Play()
local r1_5 = r2_0:Create(r11_0, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true), {
TextColor3 = Color3.fromRGB(0, 255, 255),
})
r1_5:Play()
local r2_5 = r2_0:Create(r8_0, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, -1, true), {
Size = UDim2.new(0.55, 0, 0.55, 0),
Position = UDim2.new(0.225, 0, 0.225, 0),
})
r2_5:Play()
return r0_5, r1_5, r2_5
end
local function r26_0()
-- line: [0, 0] id: 10
if r21_0 then
return
end
r21_0 = true
r12_0.TextEditable = false
if r12_0.Text:match("^%s*$") then
r12_0.Text = "Ask something first!"
task.wait(2)
r12_0.Text = ""
r12_0.TextEditable = true
r21_0 = false
return
end
r24_0()
task.wait(0.7)
r18_0.Text = r19_0[math.random(#r19_0)]
r23_0:Play()
r2_0:Create(r16_0, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
Size = UDim2.new(0.7, 0, 0.35, 0),
Position = UDim2.new(0.15, 0, 0.55, 0),
BackgroundTransparency = 0.1,
}):Play()
local r1_10, r2_10, r3_10 = r25_0()
task.delay(5, function()
-- line: [0, 0] id: 11
local r0_11 = r2_0:Create(r16_0, TweenInfo.new(0.4), {
Size = UDim2.new(0.7, 0, 0, 0),
BackgroundTransparency = 1,
})
r0_11:Play()
r0_11.Completed:Wait()
r18_0.Text = ""
r12_0.Text = ""
r12_0.TextEditable = true
r1_10:Cancel()
r2_10:Cancel()
r2_0:Create(r8_0, TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
Size = UDim2.new(0.5, 0, 0.5, 0),
Position = UDim2.new(0.25, 0, 0.25, 0),
}):Play()
r2_0:Create(r10_0, TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
Thickness = 2,
Transparency = 1,
}):Play()
r2_0:Create(r11_0, TweenInfo.new(0.4, Enum.EasingStyle.Sine, Enum.EasingDirection.Out), {
TextColor3 = Color3.fromRGB(0, 0, 0),
}):Play()
r21_0 = false
end)
end
r14_0.MouseButton1Click:Connect(r26_0)
r12_0.FocusLost:Connect(function(r0_4)
-- line: [0, 0] id: 4
if r0_4 then
r26_0()
end
end)
r14_0.MouseEnter:Connect(function()
-- line: [0, 0] id: 7
r14_0.BackgroundColor3 = Color3.fromRGB(255, 240, 100)
end)
r14_0.MouseLeave:Connect(function()
-- line: [0, 0] id: 3
r14_0.BackgroundColor3 = Color3.fromRGB(255, 215, 0)
end)
local r27_0 = Instance.new("TextButton")
r27_0.Size = UDim2.new(0, 40, 0, 40)
r27_0.Position = UDim2.new(1, -50, 0, 10)
r27_0.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
r27_0.Text = "X"
r27_0.TextColor3 = Color3.new(1, 1, 1)
r27_0.TextScaled = true
r27_0.Font = Enum.Font.GothamBold
r27_0.Parent = r5_0
local r28_0 = Instance.new("UICorner")
r28_0.CornerRadius = UDim.new(1, 0)
r28_0.Parent = r27_0
r27_0.MouseButton1Click:Connect(function()
-- line: [0, 0] id: 9
r4_0:Destroy()
end)
local r29_0 = nil
local r30_0 = nil
local r31_0 = nil
local r32_0 = nil
r5_0.InputBegan:Connect(function(r0_1)
-- line: [0, 0] id: 1
if r0_1.UserInputType == Enum.UserInputType.MouseButton1 and not r20_0 then
r29_0 = true
r31_0 = r0_1.Position
r32_0 = r5_0.Position
r0_1.Changed:Connect(function()
-- line: [0, 0] id: 2
if r0_1.UserInputState == Enum.UserInputState.End then
r29_0 = false
end
end)
end
end)
r5_0.InputChanged:Connect(function(r0_8)
-- line: [0, 0] id: 8
if r0_8.UserInputType == Enum.UserInputType.MouseMovement then
r30_0 = r0_8
end
end)
r3_0.InputChanged:Connect(function(r0_6)
-- line: [0, 0] id: 6
if r0_6 == r30_0 and r29_0 then
local r1_6 = r0_6.Position - r31_0
r5_0.Position = UDim2.new(r32_0.X.Scale, r32_0.X.Offset + r1_6.X, r32_0.Y.Scale, r32_0.Y.Offset + r1_6.Y)
end
end)
game.StarterGui:SetCore("SendNotification", {
Title = "Magic 8-Ball",
Text = "Ask your fate.",
Icon = "rbxassetid://10766183456",
Duration = 5,
Button1 = "OK",
})Advertisements
Comments
0Did it work for you? Sign in to share your experience.
No comments yet
Tried it? Let others know if it works.