Apparently, this doesn't work.
self = script.Parent
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
local t = game.Players.PlayerGui.ScreenGui1.Frame
t:TweenPosition(UDim2.new(0.88,0,0.7, 0), 'Out' ,'Quad' , 0.5)
end
script.Parent.Touched:connect(onTouch) --Fires the function above...

8 comments
https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
https://scriptinghelpers.org/help/how-post-good-questions-answers
First, Read those links above. 2nd there is nothing to fire that function... maybe you should learn how to use one...
Server scripts can't access PlayerGui
Workspace.Moon Medal.Script:14: 'end' expected (to close 'if' at line 4) near ''
@Vingam_Securis If your agruement were true, then hint boxes wouldnt be on roblox.
his statement is true... and hint boxes are still able to be created..
You forgot to index a specific player inside game.Players. Also, do this in a LocalScript.