Fix issues with corescripts, allow Fusion animations to work properly in plugins

This commit is contained in:
Lewin Kelly 2023-10-12 10:46:32 +01:00
parent 3d1310651c
commit 2d887cd198
5 changed files with 42 additions and 41 deletions

View File

@ -7106,6 +7106,7 @@ end
declare class NetworkServer extends NetworkPeer
function EncryptStringForPlayerId(self, toEncrypt: string, playerId: number): string
function SetIsPlayerAuthenticationRequired(self, value: boolean): nil
function Start(self): nil
end
declare class NetworkReplicator extends Instance

View File

@ -175,7 +175,7 @@ do
end
local function performUpdateStep()
External.performUpdateStep(time())
External.performUpdateStep(tick())
end
local stopSchedulerFunc = nil

View File

@ -125,14 +125,14 @@ if game.CoreGui.Version >= 3 and game.PlaceId ~= 130815926 then --todo: remove p
screenGui.CurrentLoadout,
"CoreScripts/BackpackScripts/LoadoutScript"
)
if game.CoreGui.Version >= 8 then
-- Wardrobe script handles all character dressing operations
scriptContext:AddCoreScript(
-1,
Backpack,
"CoreScripts/BackpackScripts/BackpackWardrobe"
)
end
-- if game.CoreGui.Version >= 8 then
-- -- Wardrobe script handles all character dressing operations
-- scriptContext:AddCoreScript(
-- -1,
-- Backpack,
-- "CoreScripts/BackpackScripts/BackpackWardrobe"
-- )
-- end
end
local IsPersonalServer = not not game.Workspace:FindFirstChild "PSVariable"

View File

@ -304,23 +304,23 @@ InventoryButton.Active = true
InventoryButton.ZIndex = 3
InventoryButton.Parent = Tabs
if game.CoreGui.Version >= 8 then
local WardrobeButton = Instance.new "TextButton"
WardrobeButton.RobloxLocked = true
WardrobeButton.Name = "WardrobeButton"
WardrobeButton.Size = UDim2.new(0, 90, 0, 30)
WardrobeButton.Position = UDim2.new(0, 77, 1, -31)
WardrobeButton.BackgroundColor3 = Color3.new(0, 0, 0)
WardrobeButton.BorderColor3 = Color3.new(1, 1, 1)
WardrobeButton.Font = Enum.Font.ArialBold
WardrobeButton.FontSize = Enum.FontSize.Size18
WardrobeButton.Text = "Wardrobe"
WardrobeButton.AutoButtonColor = false
WardrobeButton.TextColor3 = Color3.new(1, 1, 1)
WardrobeButton.Selected = false
WardrobeButton.Active = true
WardrobeButton.Parent = Tabs
end
-- if game.CoreGui.Version >= 8 then
-- local WardrobeButton = Instance.new "TextButton"
-- WardrobeButton.RobloxLocked = true
-- WardrobeButton.Name = "WardrobeButton"
-- WardrobeButton.Size = UDim2.new(0, 90, 0, 30)
-- WardrobeButton.Position = UDim2.new(0, 77, 1, -31)
-- WardrobeButton.BackgroundColor3 = Color3.new(0, 0, 0)
-- WardrobeButton.BorderColor3 = Color3.new(1, 1, 1)
-- WardrobeButton.Font = Enum.Font.ArialBold
-- WardrobeButton.FontSize = Enum.FontSize.Size18
-- WardrobeButton.Text = "Wardrobe"
-- WardrobeButton.AutoButtonColor = false
-- WardrobeButton.TextColor3 = Color3.new(1, 1, 1)
-- WardrobeButton.Selected = false
-- WardrobeButton.Active = true
-- WardrobeButton.Parent = Tabs
-- end
local closeButton = Instance.new "TextButton"
closeButton.RobloxLocked = true

View File

@ -45,10 +45,10 @@ waitForChild(backpack.Tabs, "InventoryButton")
local inventoryButton = backpack.Tabs.InventoryButton
local wardrobeButton
if game.CoreGui.Version >= 8 then
waitForChild(backpack.Tabs, "WardrobeButton")
wardrobeButton = backpack.Tabs.WardrobeButton
end
-- if game.CoreGui.Version >= 8 then
-- waitForChild(backpack.Tabs, "WardrobeButton")
-- wardrobeButton = backpack.Tabs.WardrobeButton
-- end
waitForChild(backpack.Parent, "ControlFrame")
local backpackButton =
waitForChild(backpack.Parent.ControlFrame, "BackpackButton")
@ -443,17 +443,17 @@ inventoryButton.MouseLeave:connect(function()
mouseLeaveTab(inventoryButton)
end)
if game.CoreGui.Version >= 8 then
wardrobeButton.MouseButton1Click:connect(function()
newTabClicked "wardrobe"
end)
wardrobeButton.MouseEnter:connect(function()
mouseOverTab(wardrobeButton)
end)
wardrobeButton.MouseLeave:connect(function()
mouseLeaveTab(wardrobeButton)
end)
end
-- if game.CoreGui.Version >= 8 then
-- wardrobeButton.MouseButton1Click:connect(function()
-- newTabClicked "wardrobe"
-- end)
-- wardrobeButton.MouseEnter:connect(function()
-- mouseOverTab(wardrobeButton)
-- end)
-- wardrobeButton.MouseLeave:connect(function()
-- mouseLeaveTab(wardrobeButton)
-- end)
-- end
closeButton.MouseButton1Click:connect(closeBackpack)