Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SynapseX Decompiler
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:wait()
- local Animations = Character:WaitForChild("Animations")
- local Stats = Character:WaitForChild("Stats")
- local Humanoid = Character:FindFirstChildOfClass("Humanoid")
- local PrimaryPart = Character.PrimaryPart or Character.HumanoidRootPart
- local Events = game:GetService("ReplicatedStorage"):WaitForChild("Events")
- local UIS = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local CAS = game:GetService("ContextActionService")
- local RunService = game:GetService("RunService")
- local Cam = workspace.CurrentCamera
- local ServerPlayer = script.Parent.ServerPlayer
- local PlayerGui = Player:WaitForChild("PlayerGui")
- local HipHeight = Humanoid.HipHeight
- local ID = game:GetService("LocalizationService")
- local MouseText = PlayerGui:WaitForChild("InGameGui"):WaitForChild("MouseText")
- local HealthUI = MouseText:WaitForChild("HealthUI")
- local BoolValues = Stats.BoolValues
- local StringValues = Stats.StringValues
- local DamagePart = Stats.DamagePart.Value
- local Diet = Stats.Diet.Value
- local Actions = Animations.Actions
- local Main = Animations.Main
- local MaxSpeed = 40
- local MinSpeed = 40
- local speed = 100
- local IsRunning = false
- local IsWalking = false
- local IsIdling = false
- local IsResting = false
- local IsRoaring1 = false
- local IsRoaring2 = false
- local IsRoaring3 = false
- local WDown = false
- local SDown = false
- local Attacking = false
- local CanRoar1 = BoolValues.CanRoar1.Value
- local CanRoar2 = BoolValues.CanRoar2.Value
- local CanRoar3 = BoolValues.CanRoar3.Value
- local CanSprint = BoolValues.CanSprint.Value
- local CanFly = BoolValues.CanFly.Value
- local CanAttack = BoolValues.CanAttack.Value
- local CanRest = BoolValues.CanRest.Value
- local CanNightVision = BoolValues.CanNightVision.Value
- local IsFlying = Stats.IsFlying
- local AttackDamage = StringValues.AttackDamage.Value
- local FlySpeed = StringValues.FlySpeed.Value
- local SprintSpeed = StringValues.SprintSpeed.Value
- local VitalityGain = StringValues.VitalityGain.Value
- local WalkSpeed = StringValues.WalkSpeed.Value
- local Thirst = StringValues.Thirst
- local Hunger = StringValues.Hunger
- local Attack = Actions.Attack
- local Rest = Actions.Rest
- local Roar1 = Actions.Roar1
- local Roar2 = Actions.Roar2
- local Roar3 = Actions.Roar3
- local Drink = Actions.Drink
- local Eat = Actions.Eat
- local Idle = Main.Idle
- local Sprint = Main.Sprint
- local Walk = Main.Walk
- if ID.RobloxLocaleId == "pt-br" then
- Text = "UwU olhar \195\169 um selvagem "
- elseif ID.RobloxLocaleId == "es-es" then
- Text = "UwU mira es un salvaje "
- elseif ID.RobloxLocaleId == "de-de" then
- Text = "UwU-Look ist wild "
- elseif ID.RobloxLocaleId == "ko-kr" then
- Text = "UwU \235\138\148 \236\149\188\236\131\157\236\156\188\235\161\156 \235\179\180\236\158\133\235\139\136\235\139\164. "
- elseif ID.RobloxLocaleId == "zh-cn" then
- Text = "UwU \231\156\139\232\181\183\230\157\165\229\190\136\231\139\130\233\135\142 "
- elseif ID.RobloxLocaleId == "fr-fr" then
- Text = "UwU regarde c est un sauvage "
- else
- Text = "UwU look its a wild "
- end
- if CanAttack then
- AttackAnim = Humanoid:LoadAnimation(Attack)
- AttackAnim.Priority = Enum.AnimationPriority.Action
- end
- if CanRest then
- RestAnim = Humanoid:LoadAnimation(Rest)
- RestAnim.Priority = Enum.AnimationPriority.Action
- end
- if CanRoar1 then
- Roar1Anim = Humanoid:LoadAnimation(Roar1)
- Roar1Anim.Priority = Enum.AnimationPriority.Action
- end
- if CanRoar2 then
- Roar2Anim = Humanoid:LoadAnimation(Roar2)
- Roar2Anim.Priority = Enum.AnimationPriority.Action
- end
- if CanRoar3 then
- Roar3Anim = Humanoid:LoadAnimation(Roar3)
- Roar3Anim.Priority = Enum.AnimationPriority.Action
- end
- if CanSprint then
- SprintAnim = Humanoid:LoadAnimation(Sprint)
- SprintAnim.Priority = Enum.AnimationPriority.Movement
- end
- DrinkAnim = Humanoid:LoadAnimation(Drink)
- DrinkAnim.Priority = Enum.AnimationPriority.Action
- DrinkAnim.Looped = false
- EatAnim = Humanoid:LoadAnimation(Eat)
- EatAnim.Priority = Enum.AnimationPriority.Action
- EatAnim.Looped = false
- IdleAnim = Humanoid:LoadAnimation(Idle)
- IdleAnim.Priority = Enum.AnimationPriority.Idle
- WalkAnim = Humanoid:LoadAnimation(Walk)
- WalkAnim.Priority = Enum.AnimationPriority.Movement
- Mouse.Icon = "rbxassetid://2710045807"
- Humanoid.WalkSpeed = WalkSpeed
- local function StopAll()
- local PlayingAnims = Humanoid:GetPlayingAnimationTracks()
- for _, a in pairs(PlayingAnims) do
- a:Stop()
- end
- end
- local function Attack()
- if not Attacking and Mouse.Target.Name ~= "Water" and Mouse.Target.Parent.Name ~= "Bushes" and Mouse.Target.Parent.Name ~= "Leaves" and Mouse.Target.Parent.Name ~= "Corpse" then
- Attacking = true
- DamagePart.Touched:Connect(function(Hit)
- if Hit.Parent:FindFirstChildOfClass("Humanoid") and Attacking then
- ServerPlayer.Attack:InvokeServer()
- wait(1)
- end
- end)
- AttackAnim:Play()
- PrimaryPart.AttackSound:Play()
- wait(2)
- Attacking = false
- end
- end
- local function Rest()
- if CanRest and not IsResting then
- StopAll()
- RestAnim:Play()
- IsResting = true
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- elseif CanRest and IsResting then
- RestAnim:Stop()
- IsResting = false
- IdleAnim:Play()
- Humanoid.WalkSpeed = WalkSpeed
- Humanoid.JumpPower = 50
- end
- end
- Humanoid.Running:Connect(function(Speed)
- if Speed > 0.1 and not WalkAnim.IsPlaying and not IsRunning and not IsResting and not IsFlying.Value then
- IsIdling = false
- IdleAnim:Stop()
- WalkAnim:Play()
- IsWalking = true
- end
- if Speed < 0.1 and not IsRunning and not IdleAnim.IsPlaying and not SprintAnim.IsPlaying and not IsResting and not IsFlying.Value then
- IsWalking = false
- WalkAnim:Stop()
- IdleAnim:Play()
- IsIdling = true
- end
- if Speed >= WalkSpeed and IsRunning and not SprintAnim.IsPlaying and not IsResting and not IsFlying.Value then
- SprintAnim:Play()
- Humanoid.WalkSpeed = SprintSpeed
- elseif Speed >= WalkSpeed and not IsRunning and SprintAnim.IsPlaying then
- SprintAnim:Stop()
- Humanoid.WalkSpeed = WalkSpeed
- elseif Speed < WalkSpeed and SprintAnim.IsPlaying then
- SprintAnim:Stop()
- Humanoid.WalkSpeed = WalkSpeed
- end
- end)
- local function Handler(BindName, InputState)
- if InputState == Enum.UserInputState.Begin and BindName == "RunBind" and CanSprint and not IsResting and not IsFlying.Value and not IsIdling and not IsRunning then
- StopAll()
- IsRunning = true
- Humanoid.WalkSpeed = SprintSpeed
- elseif InputState == Enum.UserInputState.End and BindName == "RunBind" and CanSprint and not IsResting and not IsFlying.Value and not IsIdling and IsRunning then
- IsRunning = false
- SprintAnim:Stop()
- Humanoid.WalkSpeed = WalkSpeed
- end
- end
- CAS:BindAction("RunBind", Handler, true, Enum.KeyCode.LeftShift, Enum.KeyCode.ButtonL3)
- CAS:SetPosition("RunBind", UDim2.new(0.72, -75, 0.3, -10))
- CAS:SetTitle("RunBind", "Run")
- Humanoid.Changed:Connect(function()
- if Humanoid.JumpPower ~= 50 and Humanoid.JumpPower ~= 0 then
- Events.AntiExploit:FireServer("Jumppower..")
- end
- Humanoid.HipHeight = HipHeight
- end)
- Character.DescendantAdded:Connect(function(Obj)
- if CanFly and Obj.Parent.Name == Character.Torso.Name or CanFly and Obj.Parent.Name == Character.HumanoidRootPart.Name or Obj.Name == "TouchInterest" then
- else
- Events.AntiExploit:FireServer("New Objects " .. Obj.Name)
- end
- end)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics, false)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics, false)
- UIS.InputBegan:Connect(function(Input, gpe)
- if not gpe and UIS.KeyboardEnabled or not gpe and UIS.TouchEnabled then
- if Input.KeyCode == Enum.KeyCode.R and not IsFlying.Value then
- Rest()
- elseif Input.KeyCode == Enum.KeyCode.One and CanRoar1 and not Roar1Anim.IsPlaying and not PrimaryPart.Roar1.Playing then
- Roar1Anim:Play()
- PrimaryPart.Roar1:Play()
- elseif Input.KeyCode == Enum.KeyCode.Two and CanRoar2 and not Roar2Anim.IsPlaying and not PrimaryPart.Roar2.Playing then
- Roar2Anim:Play()
- PrimaryPart.Roar2:Play()
- elseif Input.KeyCode == Enum.KeyCode.Three and CanRoar3 and not Roar3Anim.IsPlaying and not PrimaryPart.Roar3.Playing then
- Roar3Anim:Play()
- PrimaryPart.Roar3:Play()
- elseif Input.KeyCode == Enum.KeyCode.N and CanNightVision and game:GetService("Lighting"):FindFirstChild("NightVision") ~= nil then
- game:GetService("Lighting").NightVision:Destroy()
- elseif Input.KeyCode == Enum.KeyCode.N and CanNightVision then
- local NightVision = Instance.new("ColorCorrectionEffect", game:GetService("Lighting"))
- NightVision.Brightness = 0.6
- NightVision.Contrast = 1
- NightVision.Saturation = -1
- NightVision.Name = "NightVision"
- elseif Input.UserInputType == Enum.UserInputType.MouseButton1 then
- Attack()
- elseif Input.KeyCode == Enum.KeyCode.Q and not IsFlying.Value and CanFly and not IsResting then
- speed = FlySpeed
- StopAll()
- Events:WaitForChild("BeginFlying"):FireServer(Mouse.Hit.p)
- elseif Input.KeyCode == Enum.KeyCode.Q and IsFlying.Value and CanFly and not IsResting then
- speed = 0
- Events:WaitForChild("BeginFlying"):FireServer(Mouse.Hit.p)
- elseif Input.KeyCode == Enum.KeyCode.E and Character:FindFirstChild("IsInvisible") ~= nil then
- Events.Invisible:FireServer()
- end
- elseif UIS.GamepadEnabled and not gpe then
- if Input.KeyCode == Enum.KeyCode.ButtonB then
- Attack()
- elseif Input.KeyCode == Enum.KeyCode.ButtonX and not IsFlying.Value then
- StopAll()
- Rest()
- elseif Input.KeyCode == Enum.KeyCode.DPadDown and CanRoar1 and not Roar1Anim.IsPlaying then
- Roar1Anim:Play()
- PrimaryPart.Roar1:Play()
- elseif Input.KeyCode == Enum.KeyCode.DPadUp and CanRoar2 and not Roar2Anim.IsPlaying then
- Roar2Anim:Play()
- PrimaryPart.Roar2:Play()
- elseif Input.KeyCode == Enum.KeyCode.DPadLeft and CanRoar3 and not Roar3Anim.IsPlaying then
- Roar3Anim:Play()
- PrimaryPart.Roar3:Play()
- elseif Input.KeyCode == Enum.KeyCode.DPadRight and Character:FindFirstChild("IsInvisible") ~= nil then
- Events.Invisible:FireServer()
- elseif Input.KeyCode == Enum.KeyCode.ButtonY and not IsFlying.Value and not IsResting and CanFly then
- speed = FlySpeed
- StopAll()
- Events:WaitForChild("BeginFlying"):FireServer(Mouse.Hit.p)
- elseif Input.KeyCode == Enum.KeyCode.ButtonY and IsFlying.Value and CanFly then
- speed = 0
- Events:WaitForChild("BeginFlying"):FireServer(Mouse.Hit.p)
- end
- end
- end)
- spawn(function()
- while Humanoid.Health > 0 do
- if IsFlying.Value then
- local r = 1 + speed / 500
- Character:SetPrimaryPartCFrame(CFrame.new(PrimaryPart.Position, Mouse.Hit.p) * CFrame.Angles(math.pi / r, math.pi, math.pi))
- PrimaryPart:WaitForChild("FlyingVelocity").Velocity = (Mouse.Hit.p - PrimaryPart.Position).unit * speed
- if WDown then
- speed = speed + 50
- if speed > MaxSpeed then
- speed = MaxSpeed
- end
- elseif SDown then
- speed = speed - 50
- if speed < MinSpeed then
- speed = MinSpeed
- end
- end
- end
- RunService.RenderStepped:wait()
- end
- end)
- for _, Statuses in pairs(Stats:GetChildren()) do
- if Statuses:IsA("Folder") then
- for _, v in pairs(Statuses:GetChildren()) do
- if (v:IsA("BoolValue") or v:IsA("StringValue") or v:IsA("NumberValue")) and v.Name ~= "Thirst" and v.Name ~= "Hunger" then
- v.Changed:Connect(function()
- Events.AntiExploit:FireServer("Value changing..")
- end)
- end
- end
- elseif Statuses:IsA("ObjectValue") or Statuses:IsA("StringValue") then
- Statuses.Changed:Connect(function()
- Events.AntiExploit:FireServer("Value Changing..")
- end)
- end
- end
- Humanoid.StateChanged:Connect(function(oldState, newState)
- if newState == Enum.HumanoidStateType.Jumping then
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
- elseif newState == Enum.HumanoidStateType.Landed then
- wait(1)
- Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
- end
- end)
- Mouse.Button1Down:Connect(function()
- if Mouse.Target then
- local Position1 = Mouse.Hit.p
- local Position2 = PrimaryPart.Position
- local Magnitude = (Position1 - Position2).Magnitude
- if Mouse.Target.Name == "Water" and Magnitude <= 50 and Thirst.Value < 100 then
- if AttackAnim.IsPlaying then
- AttackAnim:Stop()
- end
- ServerPlayer.Drink:InvokeServer(Position1)
- if not DrinkAnim.IsPlaying then
- DrinkAnim:Play()
- PrimaryPart.DrinkSound:Play()
- end
- elseif (Mouse.Target.Parent.Name == "Bushes" and Diet == "Omnivore" or Mouse.Target.Parent.Name == "Bushes" and Diet == "Herbivore" or Mouse.Target.Parent.Name == "Leaves" and Diet == "Omnivore" or Mouse.Target.Parent.Name == "Leaves" and Diet == "Herbivore" or Diet == "Carnivore" and Mouse.Target.Parent.Name == "Corpse" or Diet == "Omnivore" and Mouse.Target.Parent.Name == "Corpse") and Hunger.Value < 100 and Magnitude <= 50 then
- if AttackAnim.IsPlaying then
- AttackAnim:Stop()
- end
- ServerPlayer.Eat:InvokeServer(Mouse.Target)
- if not EatAnim.IsPlaying then
- EatAnim:Play()
- end
- end
- end
- end)
- while true do
- wait()
- if IsRunning and not IsResting and not IsFlying.Value then
- Humanoid.WalkSpeed = SprintSpeed
- elseif IsWalking and not IsResting and not IsFlying.Value then
- Humanoid.WalkSpeed = WalkSpeed
- elseif IsResting and not IsFlying.Value then
- Humanoid.WalkSpeed = 0
- Humanoid.JumpPower = 0
- elseif IsFlying.Value then
- Humanoid.WalkSpeed = FlySpeed
- end
- if IsRunning and Cam.FieldOfView <= 80 then
- Cam.FieldOfView = Cam.FieldOfView + 0.3
- elseif Cam.FieldOfView >= 70 and not IsRunning and Cam.FieldOfView >= 70 then
- Cam.FieldOfView = Cam.FieldOfView - 0.3
- end
- if IsRunning and not SprintAnim.IsPlaying and not IdleAnim.IsPlaying then
- IdleAnim:Play()
- elseif IsRunning and SprintAnim.IsPlaying and IdleAnim.IsPlaying then
- IdleAnim:Stop()
- end
- if Mouse.Target then
- local Position1 = Mouse.Hit.p
- local Position2 = PrimaryPart.Position
- local Magnitude = (Position1 - Position2).Magnitude
- if Mouse.Target.Transparency <= 0.98 and Magnitude <= 150 and Mouse.Target.Parent:FindFirstChild("Stats") ~= nil then
- do
- local HMN = Mouse.Target.Parent.Humanoid
- MouseText.Visible = true
- MouseText.Position = UDim2.new(0, Mouse.X - MouseText.AbsoluteSize.X, 0, Mouse.Y - MouseText.AbsoluteSize.Y)
- MouseText.Size = UDim2.new(0, MouseText.TextBounds.X, 0, 20)
- MouseText.Text = Text .. Mouse.Target.Parent.Stats.Genus.Value
- HealthUI.Visible = true
- HealthUI.HealthTitle.Text = HMN.Health .. "/" .. HMN.MaxHealth
- HealthUI.HealthBar:TweenSize(UDim2.new(HMN.Health / HMN.MaxHealth * 0.97, 0, 0.645, 0), "In", "Quad", 0.1, true)
- HMN.HealthChanged:Connect(function()
- HealthUI.HealthTitle.Text = HMN.Health .. "/" .. HMN.MaxHealth
- HealthUI.HealthBar:TweenSize(UDim2.new(HMN.Health / HMN.MaxHealth * 0.97, 0, 0.645, 0), "In", "Quad", 0.1, true)
- end)
- end
- elseif Mouse.Target.Name == "Water" and Magnitude <= 50 then
- MouseText.Visible = true
- MouseText.Position = UDim2.new(0, Mouse.X - MouseText.AbsoluteSize.X, 0, Mouse.Y - MouseText.AbsoluteSize.Y)
- MouseText.Size = UDim2.new(0, MouseText.TextBounds.X, 0, 20)
- HealthUI.Visible = false
- MouseText.Text = "Click to Drink!"
- elseif Mouse.Target.Parent.Name == "Bushes" and Diet == "Herbivore" or Mouse.Target.Parent.Name == "Bushes" and Diet == "Omnivore" or Mouse.Target.Parent.Name == "Leaves" and Diet == "Herbivore" or Mouse.Target.Parent.Name == "Leaves" and Diet == "Omnivore" or Mouse.Target.Parent.Name == "Corpse" and Diet == "Omnivore" or Mouse.Target.Parent.Name == "Corpse" and Diet == "Carnivore" then
- if Magnitude <= 50 then
- MouseText.Visible = true
- MouseText.Position = UDim2.new(0, Mouse.X - MouseText.AbsoluteSize.X, 0, Mouse.Y - MouseText.AbsoluteSize.Y)
- MouseText.Size = UDim2.new(0, MouseText.TextBounds.X, 0, 20)
- MouseText.Text = "Click to Eat!"
- HealthUI.Visible = false
- end
- else
- MouseText.Visible = false
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement