I have a localscript inside of StarterPlayerScripts where when you step on top of a part, a frame becomes visible and tweens into view.
What is happening is the frame is becoming visible, but it isn’t tweening and there are no errors.
I’m genuinely confused
local shopPart = workspace.Upg.Hitbox
local LocalPlayer = game:GetService("Players").LocalPlayer
shopPart.Touched:Connect(function(part)
if LocalPlayer.Character and part:IsDescendantOf(LocalPlayer.Character) then
if not LocalPlayer.PlayerGui.Shop.Main.Visible == true then
LocalPlayer.PlayerGui.Shop.Main.Visible = true
LocalPlayer.PlayerGui.Shop.Main:TweenPosition(UDim2.new(0.5,0,0.5,0), nil, nil, .2, true)
end
end
end)
local shopPart = workspace.Upg.Hitbox
local LocalPlayer = game:GetService(“Players”).LocalPlayer
shopPart.Touched:Connect(function(part)
if LocalPlayer.Character and part:IsDescendantOf(LocalPlayer.Character) then
if LocalPlayer.PlayerGui.Shop.Main.Visible == false then
LocalPlayer.PlayerGui.Shop.Main.Visible = true
LocalPlayer.PlayerGui.Shop.Main:TweenPosition(UDim2.new(0.5,0,0.5,0), Enum.EasingStyle.Linear, “Out”, .2,true)
end
end
end)
this doesnt make a difference because setting the easingstyle and easingdirection to nil is the same thing as setting it to linear and out (roblox defaults)
i honestly don’t have any idea, try using game:GetService("TweenService"):Create() to achieve what you want, but i’ll continue looking solutions for :TweenPosition