script.Parent.Triggered:Connect(function(player) local character = player.Character
if player.leaderstats.Rebirths.Value >= script.Parent.Parent.Parent.Price.Value then script.Disabled = true script.Parent.Enabled = false player.PlayerGui.PortalFX.TextLabel.Visible = true player.PlayerGui.PortalFX.Circle:TweenSize(UDim2(0, 0,2.5, 0)) wait(1) character.Head.CFrame = CFrame.new(game.Workspace:WaitForChild("50 Rebirths").Position) wait(1) player.PlayerGui.PortalFX.Circle:TweenSize(UDim2.new(1.5, 0,2.5, 0)) script.Disabled = false script.Parent.Enabled = true player.PlayerGui.PortalFX.TextLabel.Visible = true end
end)
Its giving me an error for this line: "player.PlayerGui.PortalFX.Circle:TweenSize(UDim2(0, 0,2.5, 0))" Saying that its attempting to call a table value
I am not trying to make a table value, I was just trying to follow a tutorial for a portal teleporting system.
TweenService takes a table for the parameters and gets the matching properties for it. I believe it should be fixed if you try this?
local size = {} size.Size = Udim2.new(1.5,0,2.5,0) player.PlayerGui.PortalFX.Circle:TweenSize(size)
Let me know if this worked.