Local Mouse = Player:GetMouse()
Local SHOWGUI = workspace:WaitForChild('SHOWGUI')
Local ScreenGui = script.Parent:WaitForChild('ScreenGui')
Local TextLabel = ScreenGui:WaitForChild('TextLabel')
game:GetService('RunService').RenderStepped:Connect(function()
Local X = Mouse.X
Local Y = Mouse.Y
if Mouse.Target then
If Mouse.Target.Name == 'SHOWGUI' then
TextLabel.Visible = true
TextLabel.Position = UDim2.new(0,X,0,Y)
else
TextLabel.Visible = false
I put the part named SHOWGUI in workspace but idk why it wont show for me.

3 comments
Well, for one, you are using "Local" instead of "local." The Lua language is case-sensitive.
Secondly, you have not closed the functions or if-statements with the appropriate "end" line.
Format your code correctly