Advertisement
2AreYouMental110

Sanic Chase REMAKE

Sep 26th, 2023
1,124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.08 KB | None | 0 0
  1. local localplr = game.Players.LocalPlayer
  2. local lib = loadstring(game:HttpGet("https://pastebin.com/raw/A2Wf3WVh"))()
  3.  
  4. lib.makelib("Sanic Chase REMAKE")
  5. local sanicparts = {}
  6. local origstuff = {}
  7. local nojumpcd = false
  8. local autokill = false
  9. local sanicpartsbool = false
  10. local beartrapparts = {}
  11. local sanicdamageparts = {}
  12. local maintab = lib.maketab("Infection")
  13.  
  14.  
  15. lib.makelabel("Sanic",maintab)
  16.  
  17. lib.maketoggle("No killfields for sanic",maintab,function(bool)
  18.     if bool then
  19.         for i,v in pairs(workspace.GameFolder.KillFields.KillField:GetChildren()) do
  20.             sanicdamageparts[v] = v.Transparency
  21.             v.CanTouch = false
  22.             v.Transparency = 1
  23.         end
  24.         for i,v in pairs(workspace:GetChildren()) do
  25.             if v.Name == "CampBarrier" then
  26.                 sanicdamageparts[v] = v.Transparency
  27.                 v.CanTouch = false
  28.                 v.Transparency = 0.5
  29.             end
  30.         end
  31.     else
  32.         for i,v in pairs(sanicdamageparts) do
  33.             i.Transparency = v
  34.             i.CanTouch = true
  35.         end
  36.     end
  37. end)
  38.  
  39. lib.makedropdown("Select what type of sanic to be",maintab,{"Normal","Majin","Super"},function(sel)
  40.     if localplr.Character and localplr.Character:FindFirstChild("HumanoidRootPart") then
  41.         local folder
  42.         if sel == "Normal" then
  43.             folder = workspace.GameFolder.InfectionPart.Weak
  44.         elseif sel == "Majin" then
  45.             folder = workspace.GameFolder.InfectionPart.Medium
  46.         else
  47.             folder = workspace.GameFolder.InfectionPart.Strong
  48.         end
  49.         local part = folder:FindFirstChild("TransfurPart")
  50.         if sanicpartsbool then
  51.             part.CanTouch = true
  52.         end
  53.         firetouchinterest(localplr.Character.HumanoidRootPart,part,0)
  54.         if sanicpartsbool then
  55.             part.CanTouch = false
  56.         end
  57.     end
  58. end)
  59.  
  60. lib.maketoggle("Auto Kill",maintab,function(bool)
  61.     if bool then
  62.         if localplr.Character and localplr.Character:FindFirstChild("Humanoid") and localplr.Character:FindFirstChild("HumanoidRootPart") then
  63.             origstuff[1] = localplr.Character.Humanoid.HipHeight
  64.             origstuff[2] = localplr.Character.HumanoidRootPart.Size
  65.             localplr.Character.Humanoid.HipHeight = -6
  66.             localplr.Character.HumanoidRootPart.Size = Vector3.new(200,10,200)
  67.         end
  68.     else
  69.         if localplr.Character and localplr.Character:FindFirstChild("Humanoid") and localplr.Character:FindFirstChild("HumanoidRootPart") then
  70.             localplr.Character.Humanoid.HipHeight = origstuff[1]
  71.             localplr.Character.HumanoidRootPart.Size = origstuff[2]
  72.         end
  73.     end
  74. end)
  75.  
  76. lib.makelabel("Human",maintab)
  77.  
  78. lib.maketoggle("No sanic parts work (including beartraps)",maintab,function(bool)
  79.     sanicpartsbool = bool
  80.     if bool then
  81.         for i,v in pairs(workspace.GameFolder.InfectionPart:GetChildren()) do
  82.             for i,v in pairs(v:GetChildren()) do
  83.                 sanicparts[v] = v.Transparency
  84.                 v.CanTouch = false
  85.                 v.Transparency = 0.5
  86.             end
  87.         end
  88.         for i,v in pairs(workspace:GetDescendants()) do
  89.             if v.Name == "BearTrap" then
  90.                 v.CanTouch = false
  91.                 v.Transparency = 0.5
  92.             end
  93.         end
  94.     else
  95.         for i,v in pairs(sanicparts) do
  96.             i.Transparency = v
  97.             i.CanTouch = true
  98.         end
  99.         for i,v in pairs(beartrapparts) do
  100.             i.Transparency = v
  101.             i.CanTouch = true
  102.         end
  103.     end
  104. end)
  105.  
  106. lib.makelabel("Both",maintab)
  107.  
  108. lib.maketoggle("No Jump Cooldown",maintab,function(bool)
  109.     nojumpcd = bool
  110.     if localplr.Character and localplr.Character:FindFirstChild("JumpCooldown") then
  111.         localplr.Character.JumpCooldown.Disabled = bool
  112.     end
  113. end)
  114.  
  115. local workspacedescendants = workspace.DescendantAdded:Connect(function(thing)
  116.     if thing.Name == "BearTrap" then
  117.         beartrapparts[thing] = thing.Transparency
  118.         if sanicpartsbool then
  119.             thing.CanTouch = false
  120.             thing.Transparency = 0.5
  121.         end
  122.     elseif thing.Name == "JumpCooldown" and nojumpcd then
  123.         thing.Disabled = true
  124.     end
  125. end)
  126.  
  127. lib.ondestroyedfunc = function()
  128.     workspacedescendants:Disconnect()
  129.     for i,v in pairs(sanicparts) do
  130.         i.Transparency = v
  131.         i.CanTouch = true
  132.     end
  133.     for i,v in pairs(sanicdamageparts) do
  134.         i.Transparency = v
  135.         i.CanTouch = true
  136.     end
  137.     for i,v in pairs(beartrapparts) do
  138.         if i then
  139.             i.Transparency = v
  140.             i.CanTouch = true
  141.         end
  142.     end
  143.     if localplr.Character and localplr.Character:FindFirstChild("JumpCooldown") then
  144.         localplr.Character.JumpCooldown.Enabled = true
  145.     end
  146.     if localplr.Character and localplr.Character:FindFirstChild("Humanoid") and localplr.Character:FindFirstChild("HumanoidRootPart") and origstuff[2] and origstuff[1] then
  147.         localplr.Character.Humanoid.HipHeight = origstuff[1]
  148.         localplr.Character.HumanoidRootPart.Size = origstuff[2]
  149.     end
  150. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement