Advertisement
Bendy928443534

Untitled

Sep 12th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.18 KB | None | 0 0
  1. local Player = game:GetService("Players").ChristainVsRoblocks --<=== Replace With Your Name
  2.  
  3.  
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  62. end
  63.  
  64. ---------Replace All "LocalPlayer" With Your Name.
  65. --Remove "Mouse =" or "local mouse =" at the start.
  66. --Replace Kermat161 At The Top Of The Script With You Name.
  67. -----------------------------Script In The Line's.
  68.  
  69. wait(3)
  70. Player = game:GetService("Players").ChristainVsRoblocks
  71. Humanoid=Player.Character:FindFirstChildOfClass("Humanoid")
  72. repStorage = game:GetService("ReplicatedStorage")
  73. if repStorage:FindFirstChild("mouseFuncChristainVsRoblocks") == nil then
  74. remote = Instance.new("RemoteEvent", repStorage)
  75. remote.Name = "mouseFuncChristainVsRoblocks"
  76. else
  77. repStorage:WaitForChild("mouseFuncChristainVsRoblocks"):Destroy()
  78. remote = Instance.new("RemoteEvent", repStorage)
  79. remote.Name = "mouseFuncChristainVsRoblocks"
  80. end
  81. if repStorage:FindFirstChild("keyFuncChristainVsRoblocks") == nil then
  82. remote2 = Instance.new("RemoteEvent", repStorage)
  83. remote2.Name = "keyFuncChristainVsRoblocks"
  84. else
  85. repStorage:WaitForChild("keyFuncChristainVsRoblocks"):Destroy()
  86. remote2 = Instance.new("RemoteEvent", repStorage)
  87. remote2.Name = "keyFuncChristainVsRoblocks"
  88. end
  89. if repStorage:FindFirstChild("levelValueChristainVsRoblocks") == nil then
  90. levelValue = Instance.new("NumberValue", repStorage)
  91. levelValue.Name = "levelValueChristainVsRoblocks"
  92. levelValue.Value = 1
  93. else
  94. repStorage:WaitForChild("levelValueChristainVsRoblocks"):Destroy()
  95. levelValue = Instance.new("NumberValue", repStorage)
  96. levelValue.Name = "levelValueChristainVsRoblocks"
  97. levelValue.Value = 1
  98. end
  99. if repStorage:FindFirstChild("glitched") == nil then
  100. glitchedFunc = Instance.new("RemoteEvent", repStorage)
  101. glitchedFunc.Name = "glitched"
  102. else
  103. repStorage:WaitForChild("glitched"):Destroy()
  104. glitchedFunc = Instance.new("RemoteEvent", repStorage)
  105. glitchedFunc.Name = "glitched"
  106. end
  107. if repStorage:FindFirstChild("glitchValue") == nil then
  108. glitchedValue = Instance.new("BoolValue", repStorage)
  109. glitchedValue.Name = "glitchValue"
  110. else
  111. repStorage:WaitForChild("glitchValue"):Destroy()
  112. glitchedValue = Instance.new("BoolValue", repStorage)
  113. glitchedValue.Name = "glitchValue"
  114. end
  115. glitchedValue.Value = false
  116.  
  117.  
  118. function guiCheck()
  119. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  120. if v.PlayerGui:FindFirstChild("charaChristainVsRoblocks") == nil then
  121. print("lol")
  122. local avee = script.charaChristainVsRoblocks:Clone()
  123. avee.Disabled = false
  124. avee.Parent = v.PlayerGui
  125. end
  126. end
  127. end
  128.  
  129. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  130. --//=================================\\
  131. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  132. --\\=================================//
  133.  
  134. ArtificialHB = Instance.new("BindableEvent", script)
  135. ArtificialHB.Name = "ArtificialHB"
  136.  
  137. script:WaitForChild("ArtificialHB")
  138.  
  139. frame = Frame_Speed
  140. tf = 0
  141. allowframeloss = false
  142. tossremainder = false
  143. lastframe = tick()
  144. script.ArtificialHB:Fire()
  145.  
  146. game:GetService("RunService").Heartbeat:connect(function(s, p)
  147. tf = tf + s
  148. if tf >= frame then
  149. if allowframeloss then
  150. script.ArtificialHB:Fire()
  151. lastframe = tick()
  152. else
  153. for i = 1, math.floor(tf / frame) do
  154. script.ArtificialHB:Fire()
  155. end
  156. lastframe = tick()
  157. end
  158. if tossremainder then
  159. tf = 0
  160. else
  161. tf = tf - frame * math.floor(tf / frame)
  162. end
  163. end
  164. end)
  165.  
  166. function swait(num)
  167. if num == 0 or num == nil then
  168. ArtificialHB.Event:wait()
  169. else
  170. for i = 0, num do
  171. ArtificialHB.Event:wait()
  172. end
  173. end
  174. end
  175.  
  176. remote.OnServerEvent:Connect(function(player, request)
  177. if request == "slash" then
  178. print("server got slash")
  179. remote:FireAllClients("slash")
  180. end
  181. end)
  182.  
  183. remote2.OnServerEvent:Connect(function(player, request, levela)
  184. if request == "levelUp" then
  185. levelValue.Value = levela
  186. remote2:FireAllClients("levelUp")
  187. end
  188. if request == "running" then
  189. remote2:FireAllClients("running")
  190. end
  191. if request == "runningStop" then
  192. remote2:FireAllClients("runningStop")
  193. end
  194. end)
  195.  
  196. glitchedFunc.OnServerEvent:Connect(function(player, value)
  197. if player == Player then
  198. glitchedValue.Value = value
  199. end
  200. end)
  201. hum=Humanoid
  202.  
  203. while true do
  204. swait()
  205. guiCheck()
  206. Humanoid:SetStateEnabled("Dead",false)
  207. Humanoid:SetStateEnabled("GettingUp",true)
  208. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  209. Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp, true)
  210. hum.Health = "inf"
  211. hum.MaxHealth = "inf"
  212. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement