Hello! I am having an issue with my GUI being cropped into the middle of the screen randomly.
Now while the Rescale type is indeed set to crop, It only randomly does this. When I play test it has a 50 50 chance of working properly or not.
IgnoreGuiInsent is set to true.
Explorer Tab:
Script:
local Players = game:GetService("Players")
local Part = script.Parent
local UI = Part:WaitForChild("HoneyGui")
local TS = game:GetService("TweenService")
local Sound = Part:WaitForChild("Sound")
local Debounce = false
local tweenInfo = TweenInfo.new(5,Enum.EasingStyle.Linear,Enum.EasingDirection.In)
Part.Touched:Connect(function(Hit)
if not Debounce then
if Hit.Parent:FindFirstChild("Humanoid") then
Debounce = true
local Char = Hit.Parent
local Hum = Char:FindFirstChild("Humanoid")
local UIClone = UI:Clone()
local Player = Players:GetPlayerFromCharacter(Char)
local PlayerGui = Player:WaitForChild("PlayerGui")
Sound:Play()
for i,v in pairs(UIClone:GetChildren()) do
if v:IsA("Frame") then
TS:Create(v,tweenInfo,{BackgroundTransparency = 1}):Play()
elseif v:IsA("ImageLabel") then
TS:Create(v,tweenInfo,{ImageTransparency = 1}):Play()
end
end
UIClone.Parent = PlayerGui
Hum.WalkSpeed = 8
task.wait(5)
UIClone:Destroy()
Hum.WalkSpeed = 16
task.wait(5)
Debounce = false
end
end
end)
Example of the issue:
Example of the correct result:
Could this just be a Roblox Studio Bug?