Yea, you have to make it a LocalScript. Put a LocalScript under your IndexFrame and paste this inside:
--//Services
local Players = game:GetService("Players")
--//Variables
local LocalPlayer = Players.LocalPlayer
local ProximityPrompt = workspace.ProximityPrompt --//Change this if needed
local Frame = script.Parent
--//Functions
ProximityPrompt.Triggered:Connect(function(player)
if player ~= LocalPlayer then
return
end
Frame.Visible = true
Frame:TweenSize(UDim2.fromScale(1, 1), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 0.5, true)
end)