--BROUGHT TO YOU BY RobloxScripter.com!--
local CoreGui = game:GetService("CoreGui")
local CorePackages = game:GetService("CorePackages")
local UIBlox = getrenv().require(CorePackages.UIBlox)
UIBlox.init()
local StylePalette = getrenv().require(CorePackages.AppTempCommon.LuaApp.Style.StylePalette)
local stylePalette = StylePalette.new()
stylePalette:updateTheme("dark")
stylePalette:updateFont("gotham")
local Roact = getrenv().require(CorePackages.Roact)
local Images = getrenv().require(CorePackages.Packages._Index.UIBlox.UIBlox.App.ImageSet.Images)
local Gui = Roact.createElement("ScreenGui", {
IgnoreGuiInset = true,
ZIndexBehavior = Enum.ZIndexBehavior.Global
}, {
Gui = Roact.createElement(UIBlox.Core.Style.Provider, {
style = stylePalette
}, {
Toast = Roact.createElement(UIBlox.App.Dialog.Toast, {
toastContent = {
toastTitle = "Error",
toastSubtitle = "Script could not find 'Meshes/Token_Token_Base' in workspace.",
iconImage = Images['icons/status/warning']
}
})
})
})
for i,v in pairs(workspace:GetChildren()) do
if not v:FindFirstChild("Meshes/Token_Token_Base") then
Roact.mount(Gui, CoreGui, "InternalStuff")
task.wait(5)
CoreGui.InternalStuff:Destroy() -- unmount really likes to be finicky, so use this for now
break
else
v["Meshes/Token_Token_Base"].CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
end
end