You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want it so when you hold E on the proximity prompt, the UI appears using the tween effect.
What is the issue? Include screenshots / videos if possible!
It does not work, and I don’t understand why.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I looked around, but this place is full of crap half the time.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local GUI = game.Workspace.Part.ProximityPrompt
local ProximityPromptUI = script.Parent.ProximityPromptUI.ScreenGui
script.Parent:TweenPosition(UDim2.new(0.275, 0,0.914, 0), "In", "Back",5)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
easing styles and directions dont use strings, they use enum
try it like this and let me know:
script.Parent:TweenPosition(UDim2.new(0.275, 0,0.914, 0), Enum.EasingDirection.In, Enum.EasingStyle.Back, 5)
and then what is the parent of script so we can fix the issue in the output? it seems like its searching for a screenGui inside a frame so let me know of that too
Does this involve the proximity prompt? that is half of it haha
the proximityprompt seems to be triggering fine, the issue is with the gui, what is the parent of the script?
does the proximity work within this script?
so your issue is here:
the parent of the script is already the ProximityPromptUi so you’re basically searching for the frame inside itself
and then inside the frame you are searchin for the screengui too, but the frame is inside the screengui not the other way around
if you would like to get the screengui then do this:
local ProximityPromptUI = script.Parent.Parent
and if you want the frame then thats just script.parent
hope it makes sense
Thanks for your help! Much appreciated
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.