Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- -- start
- local player = owner
- player.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- player.Character.Humanoid.MaxHealth = math.huge^math.huge
- player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth
- player.Character.Humanoid.WalkSpeed = 20
- player.Character.Humanoid.JumpPower = 0
- player.Character.Parent = workspace.Terrain
- script.Parent = workspace.CurrentCamera
- player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=984822154"
- local music = Instance.new("Sound",player.Character.Head)
- music.SoundId = "rbxassetid://219157979"
- music.Volume = 99999999999999
- music.Looped = true
- music:Play()
- mouse.Button1Down:connect(function()
- local hit = mouse.Hit
- local target = mouse.Target
- if(hit~=nil)and(target~=nil)then
- if target.Parent.ClassName=="Model"then
- if target.Parent:FindFirstChild("Humanoid")~=nil then
- ypcall(function()
- target.Parent.HumanoidRootPart.Anchored = true
- target.Parent.Head.Anchored = true
- local heart = Instance.new("Part",workspace)
- heart.BrickColor = BrickColor.new("Bright red")
- heart.Anchored = true
- heart.CanCollide = false
- heart.Position = target.Parent.HumanoidRootPart.Position
- heart.Size = Vector3.new(3.595, 3.395, 1.778)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local mesh = Instance.new("SpecialMesh",heart)
- mesh.MeshId = "rbxassetid://431221914"
- mesh.Scale = Vector3.new(0.6,0.6,0.6)
- workspace.CurrentCamera.CameraSubject = heart
- target.Parent.HumanoidRootPart.Anchored = true
- target.Parent.Head.Anchored = true
- wait(1)
- heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,1,0)
- wait(.2)
- heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,2,0)
- wait(.2)
- heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,3,0)
- wait(1)
- local ow = Instance.new("Sound",target.Parent.Head)
- ow.Name = "AHHH"
- ow.SoundId = "rbxassetid://147758618"
- ow.MaxDistance = 50
- ow.Volume = 99999999999999999
- ow:Play()
- target.Parent.Humanoid:Destroy()
- target.Parent.HumanoidRootPart.Anchored = false
- target.Parent.Head.Anchored = false
- target.Parent["Left Leg"].CanCollide = true
- target.Parent["Right Leg"].CanCollide = true
- player.Character.HumanoidRootPart.Anchored = true
- player.Character.Head.Anchored = true
- heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,3,0)
- wait(.2)
- heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,2,0)
- wait(.2)
- heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,1,0)
- wait(.2)
- local char = player.Character
- for _,i in pairs(char:GetChildren())do
- 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
- i:Destroy()
- end
- end
- local matrixcolors = {"Really black","Lime green"}
- local hack = Instance.new("Sound",player.Character.Head)
- hack.SoundId = "rbxassetid://1209871551"
- hack.Volume = 99999999999999
- hack.Looped = false
- hack:Play()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Head.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char.Torso.BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Left Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Arm"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- char["Right Leg"].BrickColor = BrickColor.new(matrixcolors[math.random(1,#matrixcolors)])
- wait()
- for _,i in pairs(target.Parent:GetChildren())do
- 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
- i:Clone().Parent = char
- end
- end
- char.Head.Mesh:Destroy()
- target.Parent.Head.Mesh:Clone().Parent = char.Head
- char.Head.Color = target.Parent.Head.Color
- char.Torso.Color = target.Parent.Torso.Color
- char["Left Arm"].Color = target.Parent["Left Arm"].Color
- char["Left Leg"].Color = target.Parent["Left Leg"].Color
- char["Right Arm"].Color = target.Parent["Right Arm"].Color
- char["Right Leg"].Color = target.Parent["Right Leg"].Color
- char.Head.Transparency = target.Parent.Head.Transparency
- char.Torso.Transparency = target.Parent.Torso.Transparency
- char["Left Arm"].Transparency = target.Parent["Left Arm"].Transparency
- char["Left Leg"].Transparency = target.Parent["Left Leg"].Transparency
- char["Right Arm"].Transparency = target.Parent["Right Arm"].Transparency
- char["Right Leg"].Transparency = target.Parent["Right Leg"].Transparency
- for _,i in pairs(target.Parent:GetChildren())do
- if (i.ClassName=="Hat")or(i.ClassName=="Accessory")then
- local aDuplicate = i:Clone()
- aDuplicate.Parent = char
- wait()
- end
- end
- workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
- char.HumanoidRootPart.Anchored = false
- char.Head.Anchored = false
- heart:Destroy()
- end)
- end
- end
- end
- end)
- player.Character.Humanoid.Died:connect(function()
- local heart = Instance.new("Part",workspace)
- heart.BrickColor = BrickColor.new("Bright red")
- heart.Anchored = true
- heart.CanCollide = false
- heart.Position = player.Character.HumanoidRootPart.Position
- heart.Size = Vector3.new(3.595, 3.395, 1.778)
- local mesh = Instance.new("SpecialMesh",heart)
- mesh.MeshId = "rbxassetid://431221914"
- mesh.Scale = Vector3.new(0.6,0.6,0.6)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local ow = Instance.new("Sound",heart)
- ow.Name = ":("
- ow.SoundId = "rbxassetid://332257219"
- ow.MaxDistance = 50
- ow.Volume = 99999999999999999
- ow:Play()
- player.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=125062308"
- player.Character.Humanoid.Sit = true
- wait(.1)
- player.Character.Humanoid.PlatformStand = true
- workspace.CurrentCamera.CameraSubject = heart
- wait(1)
- heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,1,0)
- wait(.2)
- heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,2,0)
- wait(.2)
- heart.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0,3,0)
- wait(1)
- player.Character:ClearAllChildren()
- x = coroutine.wrap(function()
- while true do
- heart.Position = heart.Position + Vector3.new(0,0.45,0)
- wait(.05)
- end
- end)
- x()
- end)
- mouse.Button2Down:connect(function()
- local hit = mouse.Hit
- local target = mouse.Target
- if(hit~=nil)and(target~=nil)then
- if target.Parent.ClassName=="Model"then
- if target.Parent:FindFirstChild("Humanoid")~=nil then
- local heart = Instance.new("Part",workspace)
- heart.BrickColor = BrickColor.new("Bright red")
- heart.Anchored = true
- heart.CanCollide = false
- heart.Position = target.Parent.HumanoidRootPart.Position
- heart.Size = Vector3.new(3.595, 3.395, 1.778)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local sparkles = Instance.new("Sparkles",heart)
- local mesh = Instance.new("SpecialMesh",heart)
- mesh.MeshId = "rbxassetid://431221914"
- mesh.Scale = Vector3.new(0.6,0.6,0.6)
- local ow = Instance.new("Sound",heart)
- ow.Name = ":("
- ow.SoundId = "rbxassetid://332257219"
- ow.MaxDistance = 50
- ow.Volume = 99999999999999999
- ow:Play()
- target.Parent.HumanoidRootPart.Anchored = true
- wait(1)
- heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,1,0)
- wait(.2)
- heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,2,0)
- wait(.2)
- heart.Position = target.Parent.HumanoidRootPart.Position + Vector3.new(0,3,0)
- wait(1)
- target.Parent:ClearAllChildren()
- x = coroutine.wrap(function()
- while true do
- heart.Position = heart.Position + Vector3.new(0,0.45,0)
- wait(.05)
- end
- end)
- x()
- end
- end
- end
- end)
- warn("Loaded!")
- warn("Left Click to steal heart and Right Click to destroy heart")
- warn("When you die, your heart is destroyed as well.")
- warn("Made by NoobKiller2361 and CrastificeDude612 and good luck")
- warn("-------------------------------------------------------------------")
- warn("Version 1.1 (3/11/2018 @ 9:00 PM):")
- warn("Added destroy heart option")
- warn("Stopped death glitch")
- warn("-------------------------------------------------------------------")
- warn("Version 1.2 (3/12/2018 @ 10:30 AM):")
- warn("Removed unused history lines")
- warn("[SOMETIMES] Stops victim as well as you when a heart is above you")
- warn("-------------------------------------------------------------------")
- warn("Version 1.3 (3/12/2018 @ 10:50 AM) [HUGE UPDATE!]:")
- warn("Changing characters now changes your head!")
- warn("Added dates to update list")
- warn("š® Hearts now sparkle! š®")
- warn("Hearts now fly infinitely.")
- warn("Hearts now fly to the beautiful sky slower")
- warn("Heart song is now Only Time")
- warn("-------------------------------------------------------------------")
- warn("Version 1.4 (3/12/2018 @ 11:20 AM):")
- warn("Added matrix effect when changing characters")
- warn("-------------------------------------------------------------------")
- warn("Version 1.4.1 (3/12/2018 @ 4:10 PM):")
- warn("Changing characters now changes transparency!")
- warn("Changed name to Sariq")
- warn("-------------------------------------------------------------------")
- warn("Version 1.4.2 (3/13/2018 @ 9:00 AM):")
- warn("New sounds added!")
- warn("-------------------------------------------------------------------")
- warn("Version 1.4.3 (3/13/2018 @ 3:50 PM):")
- warn("š® Changing characters now changes name! š®")
- warn("Removed name tag due to suspect")
- warn("-------------------------------------------------------------------")
- warn("Version 1.4.4 (3/13/2018 @ 4:10 PM):")
- warn("Changing names was very quickly removed due to character glitch.")
- warn("-------------------------------------------------------------------")
- warn("Version 1.5 (4/26/2018 @ 3:20 PM):")
- warn("Theme is now Dr.Dre - The Next Episode (Instrumental)")
- warn("-------------------------------------------------------------------")
- warn("Version 1.6 (Feb/5/2019 @ 1:40 PM):")
- warn("Theme is now Aero Chord - Shootin' Stars, Feat. DDARK")
- warn("Name changed to RO Heart")
- warn("Script is now compatible with FilteringEnabled (FE)!")
- warn("-------------------------------------------------------------------")
- warn("Version 1.7 (Feb/9/2019 @ 11:50 AM):")
- warn("Hats cannot be duplicated due to a recent bug")
- warn("The nametag for the script has been removed due to another bug")
- warn("-------------------------------------------------------------------")
- warn("Don't forget to check for updates!")
- warn("Left Click to steal heart and Right Click to destroy heart")
- warn("When you die, your heart is destroyed as well.")
- warn("Made by NoobKiller2361 and CrastificeDude612. Good luck!")
- warn("Anti-Death has an issue and may not be added for a very long time.")
- warn("First theme was GTA:SA Theme")
- warn("Like most other scripts, this script will only work on R6 characters (including victims).")
- warn("---> Thank you for using the full version! <---")
Add Comment
Please, Sign In to add comment