CrastAndNoob

RO Heart (Character Stealer) Script [NO LONGER SUPPORTED]

Mar 11th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.06 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. -- start
  90. local player = owner
  91. player.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  92. player.Character.Humanoid.MaxHealth = math.huge^math.huge
  93. player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth
  94. player.Character.Humanoid.WalkSpeed = 20
  95. player.Character.Humanoid.JumpPower = 0
  96. player.Character.Parent = workspace.Terrain
  97. script.Parent = workspace.CurrentCamera
  98. player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=984822154"
  99. local music = Instance.new("Sound",player.Character.Head)
  100. music.SoundId = "rbxassetid://219157979"
  101. music.Volume = 99999999999999
  102. music.Looped = true
  103. music:Play()
  104. mouse.Button1Down:connect(function()
  105. local hit = mouse.Hit
  106. local target = mouse.Target
  107. if(hit~=nil)and(target~=nil)then
  108. if target.Parent.ClassName=="Model"then
  109. if target.Parent:FindFirstChild("Humanoid")~=nil then
  110. ypcall(function()
  111. target.Parent.HumanoidRootPart.Anchored = true
  112. target.Parent.Head.Anchored = true
  113. local heart = Instance.new("Part",workspace)
  114. heart.BrickColor = BrickColor.new("Bright red")
  115. heart.Anchored = true
  116. heart.CanCollide = false
  117. heart.Position = target.Parent.HumanoidRootPart.Position
  118. heart.Size = Vector3.new(3.595, 3.395, 1.778)
  119. local sparkles = Instance.new("Sparkles",heart)
  120. local sparkles = Instance.new("Sparkles",heart)
  121. local sparkles = Instance.new("Sparkles",heart)
  122. local sparkles = Instance.new("Sparkles",heart)
  123. local mesh = Instance.new("SpecialMesh",heart)
  124. mesh.MeshId = "rbxassetid://431221914"
  125. mesh.Scale = Vector3.new(0.6,0.6,0.6)
  126. workspace.CurrentCamera.CameraSubject = heart
  127. target.Parent.HumanoidRootPart.Anchored = true
  128. target.Parent.Head.Anchored = true
  129. wait(1)
  130. heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,1,0)
  131. wait(.2)
  132. heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,2,0)
  133. wait(.2)
  134. heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,3,0)
  135. wait(1)
  136. local ow = Instance.new("Sound",target.Parent.Head)
  137. ow.Name = "AHHH"
  138. ow.SoundId = "rbxassetid://147758618"
  139. ow.MaxDistance = 50
  140. ow.Volume = 99999999999999999
  141. ow:Play()
  142. target.Parent.Humanoid:Destroy()
  143. target.Parent.HumanoidRootPart.Anchored = false
  144. target.Parent.Head.Anchored = false
  145. target.Parent["Left Leg"].CanCollide = true
  146. target.Parent["Right Leg"].CanCollide = true
  147. player.Character.HumanoidRootPart.Anchored = true
  148. player.Character.Head.Anchored = true
  149. heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,3,0)
  150. wait(.2)
  151. heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,2,0)
  152. wait(.2)
  153. heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,1,0)
  154. wait(.2)
  155. local char = player.Character
  156. for _,i in pairs(char:GetChildren())do
  157. if (i.ClassName=="Hat")or(i.ClassName=="Accessory")or(i.ClassName=="Shirt")or(i.ClassName=="Pants")or(i.ClassName=="CharacterMesh")or(i.ClassName=="ShirtGraphic")then
  158. i:Destroy()
  159. end
  160. end
  161. local matrixcolors = {"Really black","Lime green"}
  162. local hack = Instance.new("Sound",player.Character.Head)
  163. hack.SoundId = "rbxassetid://1209871551"
  164. hack.Volume = 99999999999999
  165. hack.Looped = false
  166. hack:Play()
  167. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  168. wait()
  169. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  170. wait()
  171. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  172. wait()
  173. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  174. wait()
  175. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  176. wait()
  177. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  178. wait()
  179. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  180. wait()
  181. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  182. wait()
  183. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  184. wait()
  185. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  186. wait()
  187. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  188. wait()
  189. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  190. wait()
  191. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  192. wait()
  193. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  194. wait()
  195. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  196. wait()
  197. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  198. wait()
  199. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  200. wait()
  201. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  202. wait()
  203. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  204. wait()
  205. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  206. wait()
  207. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  208. wait()
  209. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  210. wait()
  211. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  212. wait()
  213. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  214. wait()
  215. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  216. wait()
  217. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  218. wait()
  219. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  220. wait()
  221. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  222. wait()
  223. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  224. wait()
  225. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  226. wait()
  227. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  228. wait()
  229. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  230. wait()
  231. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  232. wait()
  233. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  234. wait()
  235. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  236. wait()
  237. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  238. wait()
  239. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  240. wait()
  241. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  242. wait()
  243. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  244. wait()
  245. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  246. wait()
  247. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  248. wait()
  249. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  250. wait()
  251. char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  252. wait()
  253. char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  254. wait()
  255. char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  256. wait()
  257. char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  258. wait()
  259. char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  260. wait()
  261. char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
  262. wait()
  263. for _,i in pairs(target.Parent:GetChildren())do
  264. if (i.ClassName=="Hat")or(i.ClassName=="Accessory")or(i.ClassName=="Shirt")or(i.ClassName=="Pants")or(i.ClassName=="CharacterMesh")or(i.ClassName=="ShirtGraphic")then
  265. i:Clone().Parent = char
  266. end
  267. end
  268. char.Head.Mesh:Destroy()
  269. target.Parent.Head.Mesh:Clone().Parent = char.Head
  270. char.Head.Color = target.Parent.Head.Color
  271. char.Torso.Color = target.Parent.Torso.Color
  272. char["Left Arm"].Color = target.Parent["Left Arm"].Color
  273. char["Left Leg"].Color = target.Parent["Left Leg"].Color
  274. char["Right Arm"].Color = target.Parent["Right Arm"].Color
  275. char["Right Leg"].Color = target.Parent["Right Leg"].Color
  276. char.Head.Transparency = target.Parent.Head.Transparency
  277. char.Torso.Transparency = target.Parent.Torso.Transparency
  278. char["Left Arm"].Transparency = target.Parent["Left Arm"].Transparency
  279. char["Left Leg"].Transparency = target.Parent["Left Leg"].Transparency
  280. char["Right Arm"].Transparency = target.Parent["Right Arm"].Transparency
  281. char["Right Leg"].Transparency = target.Parent["Right Leg"].Transparency
  282. for _,i in pairs(target.Parent:GetChildren())do
  283. if (i.ClassName=="Hat")or(i.ClassName=="Accessory")then
  284. local aDuplicate = i:Clone()
  285. aDuplicate.Parent = char
  286. wait()
  287. end
  288. end
  289. workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
  290. char.HumanoidRootPart.Anchored = false
  291. char.Head.Anchored = false
  292. heart:Destroy()
  293. end)
  294. end
  295. end
  296. end
  297. end)
  298. player.Character.Humanoid.Died:connect(function()
  299. local heart = Instance.new("Part",workspace)
  300. heart.BrickColor = BrickColor.new("Bright red")
  301. heart.Anchored = true
  302. heart.CanCollide = false
  303. heart.Position = player.Character.HumanoidRootPart.Position
  304. heart.Size = Vector3.new(3.595, 3.395, 1.778)
  305. local mesh = Instance.new("SpecialMesh",heart)
  306. mesh.MeshId = "rbxassetid://431221914"
  307. mesh.Scale = Vector3.new(0.6,0.6,0.6)
  308. local sparkles = Instance.new("Sparkles",heart)
  309. local sparkles = Instance.new("Sparkles",heart)
  310. local sparkles = Instance.new("Sparkles",heart)
  311. local sparkles = Instance.new("Sparkles",heart)
  312. local ow = Instance.new("Sound",heart)
  313. ow.Name = ":("
  314. ow.SoundId = "rbxassetid://332257219"
  315. ow.MaxDistance = 50
  316. ow.Volume = 99999999999999999
  317. ow:Play()
  318. player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=125062308"
  319. player.Character.Humanoid.Sit = true
  320. wait(.1)
  321. player.Character.Humanoid.PlatformStand = true
  322. workspace.CurrentCamera.CameraSubject = heart
  323. wait(1)
  324. heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,1,0)
  325. wait(.2)
  326. heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,2,0)
  327. wait(.2)
  328. heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,3,0)
  329. wait(1)
  330. player.Character:ClearAllChildren()
  331. x = coroutine.wrap(function()
  332. while true do
  333. heart.Position = heart.Position + Vector3.new(0,0.45,0)
  334. wait(.05)
  335. end
  336. end)
  337. x()
  338. end)
  339. mouse.Button2Down:connect(function()
  340. local hit = mouse.Hit
  341. local target = mouse.Target
  342. if(hit~=nil)and(target~=nil)then
  343. if target.Parent.ClassName=="Model"then
  344. if target.Parent:FindFirstChild("Humanoid")~=nil then
  345. local heart = Instance.new("Part",workspace)
  346. heart.BrickColor = BrickColor.new("Bright red")
  347. heart.Anchored = true
  348. heart.CanCollide = false
  349. heart.Position = target.Parent.HumanoidRootPart.Position
  350. heart.Size = Vector3.new(3.595, 3.395, 1.778)
  351. local sparkles = Instance.new("Sparkles",heart)
  352. local sparkles = Instance.new("Sparkles",heart)
  353. local sparkles = Instance.new("Sparkles",heart)
  354. local sparkles = Instance.new("Sparkles",heart)
  355. local mesh = Instance.new("SpecialMesh",heart)
  356. mesh.MeshId = "rbxassetid://431221914"
  357. mesh.Scale = Vector3.new(0.6,0.6,0.6)
  358. local ow = Instance.new("Sound",heart)
  359. ow.Name = ":("
  360. ow.SoundId = "rbxassetid://332257219"
  361. ow.MaxDistance = 50
  362. ow.Volume = 99999999999999999
  363. ow:Play()
  364. target.Parent.HumanoidRootPart.Anchored = true
  365. wait(1)
  366. heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,1,0)
  367. wait(.2)
  368. heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,2,0)
  369. wait(.2)
  370. heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,3,0)
  371. wait(1)
  372. target.Parent:ClearAllChildren()
  373. x = coroutine.wrap(function()
  374. while true do
  375. heart.Position = heart.Position + Vector3.new(0,0.45,0)
  376. wait(.05)
  377. end
  378. end)
  379. x()
  380. end
  381. end
  382. end
  383. end)
  384. warn("Loaded!")
  385. warn("Left Click to steal heart and Right Click to destroy heart")
  386. warn("When you die, your heart is destroyed as well.")
  387. warn("Made by NoobKiller2361 and CrastificeDude612 and good luck")
  388. warn("-------------------------------------------------------------------")
  389. warn("Version 1.1 (3/11/2018 @ 9:00 PM):")
  390. warn("Added destroy heart option")
  391. warn("Stopped death glitch")
  392. warn("-------------------------------------------------------------------")
  393. warn("Version 1.2 (3/12/2018 @ 10:30 AM):")
  394. warn("Removed unused history lines")
  395. warn("[SOMETIMES] Stops victim as well as you when a heart is above you")
  396. warn("-------------------------------------------------------------------")
  397. warn("Version 1.3 (3/12/2018 @ 10:50 AM) [HUGE UPDATE!]:")
  398. warn("Changing characters now changes your head!")
  399. warn("Added dates to update list")
  400. warn("šŸ˜® Hearts now sparkle! šŸ˜®")
  401. warn("Hearts now fly infinitely.")
  402. warn("Hearts now fly to the beautiful sky slower")
  403. warn("Heart song is now Only Time")
  404. warn("-------------------------------------------------------------------")
  405. warn("Version 1.4 (3/12/2018 @ 11:20 AM):")
  406. warn("Added matrix effect when changing characters")
  407. warn("-------------------------------------------------------------------")
  408. warn("Version 1.4.1 (3/12/2018 @ 4:10 PM):")
  409. warn("Changing characters now changes transparency!")
  410. warn("Changed name to Sariq")
  411. warn("-------------------------------------------------------------------")
  412. warn("Version 1.4.2 (3/13/2018 @ 9:00 AM):")
  413. warn("New sounds added!")
  414. warn("-------------------------------------------------------------------")
  415. warn("Version 1.4.3 (3/13/2018 @ 3:50 PM):")
  416. warn("šŸ˜® Changing characters now changes name! šŸ˜®")
  417. warn("Removed name tag due to suspect")
  418. warn("-------------------------------------------------------------------")
  419. warn("Version 1.4.4 (3/13/2018 @ 4:10 PM):")
  420. warn("Changing names was very quickly removed due to character glitch.")
  421. warn("-------------------------------------------------------------------")
  422. warn("Version 1.5 (4/26/2018 @ 3:20 PM):")
  423. warn("Theme is now Dr.Dre - The Next Episode (Instrumental)")
  424. warn("-------------------------------------------------------------------")
  425. warn("Version 1.6 (Feb/5/2019 @ 1:40 PM):")
  426. warn("Theme is now Aero Chord - Shootin' Stars, Feat. DDARK")
  427. warn("Name changed to RO Heart")
  428. warn("Script is now compatible with FilteringEnabled (FE)!")
  429. warn("-------------------------------------------------------------------")
  430. warn("Version 1.7 (Feb/9/2019 @ 11:50 AM):")
  431. warn("Hats cannot be duplicated due to a recent bug")
  432. warn("The nametag for the script has been removed due to another bug")
  433. warn("-------------------------------------------------------------------")
  434. warn("Don't forget to check for updates!")
  435. warn("Left Click to steal heart and Right Click to destroy heart")
  436. warn("When you die, your heart is destroyed as well.")
  437. warn("Made by NoobKiller2361 and CrastificeDude612. Good luck!")
  438. warn("Anti-Death has an issue and may not be added for a very long time.")
  439. warn("First theme was GTA:SA Theme")
  440. warn("Like most other scripts, this script will only work on R6 characters (including victims).")
  441. warn("---> Thank you for using the full version! <---")
Add Comment
Please, Sign In to add comment