Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

When I touch an object in workspace, I want a frame in the gui to move, how would I do that?

Asked by 7 years ago
Edited 7 years ago

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...
0
First, Read those links above. 2nd there is nothing to fire that function... maybe you should learn how to use one... User#15461 0 — 7y
0
Server scripts can't access PlayerGui Vingam_Securis 213 — 7y
View all comments (4 more)
0
Workspace.Moon Medal.Script:14: 'end' expected (to close 'if' at line 4) near '<eof>' JoeRaptor 72 — 7y
0
@Vingam_Securis If your agruement were true, then hint boxes wouldnt be on roblox. JoeRaptor 72 — 7y
0
his statement is true... and hint boxes are still able to be created.. DeveloperSolo 370 — 7y
0
You forgot to index a specific player inside game.Players. Also, do this in a LocalScript. cabbler 1942 — 7y

Answer this question