So, I’ve been trying to make a gui open when you touch a part, and I’m not sure what’s wrong.
Here’s my script:
local Player = game:GetService(“Players”).LocalPlayer
local Part = workspace.ShopPart
Part.Touched:Connect(function(hit)
if hit.Parent == Player.Character then
script.Parent.Parent.ShopGui.PowerFrame:TweenPosition(UDim2.new(0.5,0,0.5),Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, 1)
end
end)