-- Animal Simulator Script | Rayfield UI -- Load Rayfield local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Animal Simulator Hub", LoadingTitle = "Animal Simulator", LoadingSubtitle = "by Script Hub", ConfigurationSaving = { Enabled = true, FolderName = "AnimalSimHub", FileName = "Config" } }) -- Services local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local Player = Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:Wait() local Humanoid = Character:WaitForChild("Humanoid") local HRP = Character:WaitForChild("HumanoidRootPart") -- Variables local CoinFarmEnabled = false local TpWalkEnabled = false local InfJumpEnabled = false local NoClipEnabled = false local AutoEatEnabled = false local AutoQuestEnabled = false local TpWalkSpeed = 3 -- Refresh character on respawn Player.CharacterAdded:Connect(function(char) Character = char Humanoid = char:WaitForChild("Humanoid") HRP = char:WaitForChild("HumanoidRootPart") end) ---------------------------------------------------------------- -- AUTOFARM TAB ---------------------------------------------------------------- local AutofarmTab = Window:CreateTab("Autofarm", "coins") AutofarmTab:CreateToggle({ Name = "Coin AutoFarm", CurrentValue = false, Flag = "CoinFarm", Callback = function(Value) CoinFarmEnabled = Value while CoinFarmEnabled do pcall(function() for _, coin in pairs(Workspace:GetDescendants()) do if not CoinFarmEnabled then break end if coin:IsA("BasePart") and (coin.Name:lower():find("coin") or coin.Name:lower():find("collect") or coin.Name:lower():find("orb")) then if coin.Parent and coin:IsDescendantOf(Workspace) then HRP.CFrame = coin.CFrame task.wait(0.1) end end end end) task.wait(0.5) end end, }) AutofarmTab:CreateToggle({ Name = "Auto Eat (Stay Alive)", CurrentValue = false, Flag = "AutoEat", Callback = function(Value) AutoEatEnabled = Value while AutoEatEnabled do pcall(function() for _, food in pairs(Workspace:GetDescendants()) do if not AutoEatEnabled then break end if food:IsA("BasePart") and (food.Name:lower():find("food") or food.Name:lower():find("berry") or food.Name:lower():find("meat")) then if food.Parent and food:IsDescendantOf(Workspace) then HRP.CFrame = food.CFrame task.wait(0.15) end end end end) task.wait(1) end end, }) AutofarmTab:CreateToggle({ Name = "Auto XP Farm (Kill NPCs)", CurrentValue = false, Flag = "AutoXP", Callback = function(Value) _G.AutoXP = Value while _G.AutoXP do pcall(function() for _, npc in pairs(Workspace:GetDescendants()) do if not _G.AutoXP then break end if npc:IsA("Model") and npc:F