Back to Scripts
No Hub Name
ScriptBlox
Free
Game: Scary Spelling
79
Views
1
Likes
0
Dislikes
AMIR6COM
offline
Features
Auto typer
Correct
Decrypted
Lua 5.1
Script Code
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MarketplaceService = game:GetService("MarketplaceService")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AutoTypeGui"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = PlayerGui
local function Style(element, radius)
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, radius or 10)
corner.Parent = element
local stroke = Instance.new("UIStroke")
stroke.Color = Color3.fromRGB(255,255,255)
stroke.Transparency = 0.7
stroke.Thickness = 1
stroke.Parent = element
end
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0,280,0,210)
MainFrame.Position = UDim2.new(0,20,0,20)
MainFrame.BackgroundColor3 = Color3.fromRGB(45,45,60)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true -- Делаем Frame перетаскиваемым
MainFrame.Parent = ScreenGui
Style(MainFrame,12)
local Header = Instance.new("Frame")
Header.Size = UDim2.new(1,0,0,35)
Header.BackgroundColor3 = Color3.fromRGB(30,30,45)
Header.BorderSizePixel = 0
Header.Parent = MainFrame
Style(Header)
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1,-10,1,0)
Title.Position = UDim2.new(0,5,0,0)
Title.BackgroundTransparency = 1
Title.Text = "No Hub Name"
Title.TextColor3 = Color3.new(1,1,1)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 20
Title.TextXAlignment = Enum.TextXAlignment.Center
Title.Parent = Header
local CloseBtn = Instance.new("TextButton")
CloseBtn.Size = UDim2.new(0,30,0,30)
CloseBtn.Position = UDim2.new(1,-35,0,3)
CloseBtn.BackgroundColor3 = Color3.fromRGB(200,50,50)
CloseBtn.Text = "X"
CloseBtn.TextColor3 = Color3.new(1,1,1)
CloseBtn.Font = Enum.Font.GothamBold
CloseBtn.TextSize = 18
CloseBtn.Parent = MainFrame
Style(CloseBtn)
local WordLabel = Instance.new("TextLabel")
WordLabel.Size = UDim2.new(0,240,0,25)
WordLabel.Position = UDim2.new(0,20,0,50)
WordLabel.BackgroundColor3 = Color3.fromRGB(60,60,80)
WordLabel.TextColor3 = Color3.new(1,1,1)
WordLabel.Font = Enum.Font.Gotham
WordLabel.TextSize = 16
WordLabel.Text = "Word: No Word Detected :("
WordLabel.Parent = MainFrame
Style(WordLabel,8)
local function CreateBtn(text,y)
local b = Instance.new("TextButton")
b.Size = UDim2.new(0,240,0,25)
b.Position = UDim2.new(0,20,0,y)
b.BackgroundColor3 = Color3.fromRGB(70,100,150)
b.TextColor3 = Color3.new(1,1,1)
b.Font = Enum.Font.GothamBold
b.TextSize = 16
b.Text = text
Style(b,8)
b.Parent = MainFrame
return b
end
local SubmitBtn = CreateBtn("Submit The True Word",85)
local AutoBtn = CreateBtn("Auto Submit: OFF",120)
local CopyBtn = CreateBtn("Copy Word",155)
local WordMap = {
eletricity="electricity",
genuis="genius",
["uncostutional "]="uncostitutional",
["paradigm #219"]="boat",
["notebook v2"]="notebook",
["potted plant"]="pot",
hydroeletric="hydroelectric",
phiosopher="philosopher",
yt="youtube"
}
local IgnoreSounds = {
blood_splat=true,
["coins-and-gems-treasure-sound-effect"]=true
}
local CurrentWord="No Word Detected :("
local function UpdateWord(name)
CurrentWord=WordMap[name:lower()] or name:lower()
end
spawn(function()
while true do
wait(1)
WordLabel.Text="Word: "..CurrentWord
end
end)
game.DescendantAdded:Connect(function(obj)
if obj:IsA("Sound") then
local id=string.match(obj.SoundId,"%d+")
if id then
local success,info=pcall(function()
return MarketplaceService:GetProductInfo(id)
end)
if success and info and info.Name then
local name=info.Name:gsub("%s?%(%d+%)","")
if IgnoreSounds[name:lower()] then return end
obj.Parent=workspace
obj.Volume=0
obj:Destroy()
UpdateWord(name)
if AutoBtn.Text=="Auto Submit: ON" then
for i=1,5 do
spawn(function()
ReplicatedStorage:WaitForChild("Events"):WaitForChild("GameEvent"):FireServer("submitAnswer",CurrentWord:lower())
end)
wait(0.5)
end
end
end
end
end
end)
SubmitBtn.MouseButton1Click:Connect(function()
if CurrentWord~="No Word Detected :(" then
ReplicatedStorage:WaitForChild("Events"):WaitForChild("GameEvent"):FireServer("submitAnswer",CurrentWord:lower())
end
end)
AutoBtn.MouseButton1Click:Connect(function()
if AutoBtn.Text=="Auto Submit: OFF" then
AutoBtn.Text="Auto Submit: ON"
AutoBtn.BackgroundColor3=Color3.fromRGB(80,140,100)
else
AutoBtn.Text="Auto Submit: OFF"
AutoBtn.BackgroundColor3=Color3.fromRGB(70,100,150)
end
end)
CopyBtn.MouseButton1Click:Connect(function()
if CurrentWord~="No Word Detected :(" then
setclipboard(CurrentWord)
end
end)
CloseBtn.MouseButton1Click:Connect(function()
ScreenGui:Destroy()
end)
Comments (0)
Please login to comment
Login with Discord
Loading comments...