So I have a question. In StarterGui there is GUI called "Notifications" and inside of that GUI there is Frame called"BadgeAwardNotifcation" also I have Part in Workspace. That part has script inside. Script code is:
local frame = script.Parent.Parent.Notifications.BadgeAwardNotifcation
function onTouched(hit)
frame:TweenPosition(UDim2.new(1, -200,0.92, -68))
wait(5)
frame:TweenPosition(UDim2.new(1, 100,0.92, -68))
end
script.Parent.Touched:connect(onTouched)
What do I need to do that on touch the GUI worked properly?

1 comment
You're not directing to the FrameGui on line 1 correctly. Since this this a server script you wouldn't be able to get it either since the server can't see PlayerGui. You'll have to set this up on a local script or use RemoteEvents.