Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why do I have random text spawning on my GUI?

I have a LocalScript with the following code:

--[[
	
	Robloxia™ © OMG_Gaming404	
	
	For the documentation on the Remote Event & Remote Fnction please refer to Replicated Storage -> RE & RF Doc	
	
--]]
wait() -- main entry point
local sgui = game:GetService("StarterGui")
local lpgui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local blur = Instance.new("BlurEffect")

blur.Size = 15

sgui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

local PlayerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")
PlayerGui:SetTopbarTransparency(1)
local screen = Instance.new("ScreenGui")
screen.Parent = PlayerGui
local f = Instance.new("Frame",screen)
f.ZIndex = 1
f.Size = UDim2.new(1,0,1,0)
f.BackgroundTransparency = 1
local textLabel = Instance.new("TextLabel")
textLabel.Font = Enum.Font.Cartoon
textLabel.Text = "Loading"
textLabel.BackgroundColor3 = Color3.new(255,255,255)
textLabel.Size = UDim2.new(1,0,1,36)
textLabel.Position = UDim2.new(0,0,0,-36)
textLabel.FontSize = Enum.FontSize.Size96
textLabel.TextColor3 = game.StarterGui.tmp.TextLabel.TextColor3
textLabel.Parent = f
 
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
 
local count = 0
local start = tick()
while tick() - start < 6 do
	textLabel.Text = "Loading " .. string.rep(".",count)
	count = (count + 1) % 4
	wait(.3) 
end
 
f:TweenPosition(UDim2.new(1,0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Elastic, 15)
blur.Parent = game.Lighting


-- display intro

--blur:Destroy()

local Gui = Instance.new("ScreenGui")
local mf = Instance.new("Frame", Gui)
local Text1 = Instance.new("TextLabel", mf)
local Text2 = Instance.new("TextLabel", mf)
local Version = Instance.new("TextLabel", mf)
mf.Visible = true
mf.ZIndex = 10
--selection
local sf = Instance.new("Frame", Gui)
local Play = Instance.new("TextButton", sf)
local Store = Instance.new("TextButton", sf)
local Options = Instance.new("TextButton", sf)
sf.Visible = false

-- version

Version.Text = game.ServerStorage.GameVersion.Value

-- properties

mf.BackgroundTransparency = 1
mf.Size = UDim2.new(1,0,1,0)

sf.Size = UDim2.new(1,0,1,-150)
sf.Position = UDim2.new(0,0,1,150)
sf.BackgroundTransparency = 1

Text1.Size = UDim2.new(1,0,0,150)
Text1.Text = "Robloxia"
Text1.TextColor3 = Color3.fromRGB(198,0,0)
Text1.TextScaled = true
Text1.BackgroundTransparency = 1

Text2.Position = UDim2.new(0,-2,0,-2)
Text2.Size = UDim2.new(1,0,0,150)
Text2.Text = "Robloxia"
Text2.TextColor3 = Color3.fromRGB(168,0,0)
Text2.TextScaled = true
Text2.BackgroundTransparency = 1

Gui.Parent = lpgui
wait(1)
screen.Parent = nil
--Play

script.Assets.Borders:Clone().Parent = Play
Play.BackgroundTransparency = 1
Play.Text = "Play"
Play.FontSize = Enum.FontSize.Size60
Play.Position = UDim2.new(0.5,-125,0.5,-50)
Play.Size = UDim2.new(0,250,0,100)
Play.Borders.Background.Text.Text = "Play"

-- Display

sf.Visible = true

wait(.1)

sf:TweenPosition(UDim2.new(0,0,0,150), Enum.EasingDirection.In, Enum.EasingStyle.Quad, 2.5)

wait(2.5)

local blockevents = true

Play.MouseButton1Click:connect(function()
	blockevents = false
end)

local re = game.ReplicatedStorage.RE

re.OnClientEvent:connect(function(f)
	if f == "0x987" then
		return script.Assets.fire.Value
	end
end)

Here's the image with the random text (circled)

Click here to view image{External Site}

1 answer

✓ Accepted answer

Load a game, go to Explorer and go to your Player object under Players.

From there, go to the PlayerGui object and go under your ScreenGui and see what unwanted text is there to edit from your script.

2 comments

0

There is none i checked earlier

0

Found it.

This discussion is preserved as it was. New answers, comments, and votes are closed.