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

0

First, Read those links above. 2nd there is nothing to fire that function... maybe you should learn how to use one...

0

Server scripts can't access PlayerGui

0

Workspace.Moon Medal.Script:14: 'end' expected (to close 'if' at line 4) near ''

0

@Vingam_Securis If your agruement were true, then hint boxes wouldnt be on roblox.

0

his statement is true... and hint boxes are still able to be created..

0

You forgot to index a specific player inside game.Players. Also, do this in a LocalScript.