-- Encantadia The Chaos | Chaos Script -- Execute this in the game using your executor local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Encantadia The Chaos | Chaos Hub", LoadingTitle = "Loading Chaos Hub", LoadingSubtitle = "by: JhonBoss", ConfigurationSaving = { Enabled = true, FolderName = "EncantadiaChaos", FileName = "ChaosConfig" }, KeySystem = false -- Set to true for key if needed }) local Tab = Window:CreateTab("Teleports", 4483362458) -- Icon ID optional local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local TweenService = game:GetService("TweenService") local selectedPlayer = "" local selectedSpawn = "" -- Teleport function local function teleportToPlayer(playerName) local targetPlayer = Players:FindFirstChild(playerName) if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("HumanoidRootPart") and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then LocalPlayer.Character.HumanoidRootPart.CFrame = targetPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0, 3, -5) Rayfield:Notify({ Title = "Teleported!", Content = "Teleported to " .. playerName, Duration = 3, Image = 4483362458 }) else Rayfield:Notify({ Title = "Error", Content = "Player not found or no character.", Duration = 3, Image = 4483362458 }) end end -- Get player list local function getPlayerList() local playerList = {} for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then table.insert(playerList, player.Name) end end return playerList end -- Player Teleport Section local PlayerSection = Tab:CreateSection("Player Teleport") local PlayerDropdown = Tab:CreateDropdown({ Name = "Select Player", Options = getPlayerList(), CurrentOption = "None", Flag = "PlayerTP", Callback = function(Option) teleportToPlayer(Option) end, }) Tab:CreateButton({ Name = "Refresh Player List", Callback = function() PlayerDropdown:Refresh(getPlayerList(), true) Rayfield:Notify({ Title = "Refreshed", Content = "Player list updated!", Duration = 2 }) end, }) -- Spawn/Map Teleports -- Note: Add your own CFrames below for specific maps! -- To get CFrame: Use the Print CFrame button while standing at the location local MapCFrames = { ["Spawn"] = CFrame.new(0, 50, 0), -- Placeholder, replace with real ["Lireo"] = CFrame.new(0, 50, 0), ["Adamya"] = CFrame.new(0, 50, 0), ["Sushang"] = CFrame.new(0, 50, 0), ["Hathoria"] = CFrame.new(0, 50, 0), ["Ades"] = CFrame.new(0, 50, 0), -- Add more: ["MapName"] = CFrame.new(x, y, z) } local function teleportToMap(mapName) local cf = MapCFrames[mapName] if cf and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then LocalPlayer.Character.HumanoidRootPart.CFrame = cf Rayfield:Notify({ Title = "Teleported to " .. mapName, Content = "Enjoy!", Duration = 3 }) else Rayfield:Notify({ Title = "Error", Content = "CFrame not set for " .. mapName .. ". Use Print CFrame to get it!", Duration = 4 }) end end local MapSection = Tab:CreateSection("Map Teleports") local MapDropdown = Tab:CreateDropdown({ Name = "Select Map", Options = {"Spawn", "Lireo", "Adamya", "Sushang", "Hathoria", "Ades"}, CurrentOption = "Spawn", Callback = function(Option) teleportToMap(Option) end, }) -- To add more maps, edit MapCFrames table above and refresh dropdown if needed Tab:CreateButton({ Name = "Print Current CFrame", Callback = function() if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then local cf = LocalPlayer.Character.HumanoidRootPart.CFrame print("CFrame: " .. tostring(cf)) Rayfield:Notify({ Title = "CFrame Printed!", Content = "Check console for CFrame. Paste into MapCFrames!", Duration = 5 }) end end, }) -- Optional: Dynamic SpawnLocations local function getSpawnLocations() local spawns = {} for _, obj in ipairs(workspace:GetDescendants()) do if obj:IsA("SpawnLocation") and obj.Parent then local name = obj.Parent.Name .. " > " .. obj.Name if not table.find(spawns, name) then table.insert(spawns, name) end end end return spawns end local SpawnDropdown = Tab:CreateDropdown({ Name = "Dynamic Spawns (Refresh First)", Options = {}, CurrentOption = {"None"}, Callback = function(Option) -- Would need to map back, simplified: print for now print("Selected spawn: " .. Option) end, }) Tab:CreateButton({ Name = "Refresh Spawns", Callback = function() local spawns = getSpawnLocations() SpawnDropdown:Refresh(spawns, true) end, }) Rayfield:LoadConfiguration()