Gui scaling is broken

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    fix the gui scaling, i dont know the problem
  2. What is the issue? Include screenshots / videos if possible!
    the gui is scaling differentlly from what i have it as
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried all the solutions in messaged or in green
    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!
    this is what it looks like in workspace vs what it looks like in game:


local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local tw = game:GetService("TweenService")

local s = script.Parent
--local a = script.Parent:WaitForChild("__IntensityBar").a

game:GetService("RunService").RenderStepped:Connect(function()
	local humanoid = char:FindFirstChild("Humanoid")
	--a.Text = math.floor(player.__stats.__int.Value).."/".."200"
	--script.Parent.Size = UDim2.new(player.__stats.__int.Value/200,0,1,0)
	s.Size = UDim2.new(1,0,-(player.__stats.__int.Value/200),0)
	
	--local other = math.clamp(player.__stats.__int.Value / 200, 0, 1)
	--local info = TweenInfo.new(player.__stats.__int.Value / 200,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
	--tw:Create(script.Parent,info,{Size = UDim2.fromScale(other, 1)}):Play()
end)

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.

you are legitimately setting the UDim2 ingame

its a value so it makes the bar go down, thats how i saw it on dev fourm and youtube, the bar goes down as the value decreases

The scale for udim2 that you set was ‘1’ for X, that’s why its broken

what do i need to set it to then…?

can u record the problem when u join the game