Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- 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 TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
- 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
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled 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,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true 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
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- --// Script made by Cronizete
- --// Please dont check the code its ugly
- --// Who ever has this and youre not the maker of this script then you just stole it unless I released it to the public or whatever but yeah
- --// Please, if you're going to showcase this. Make sure to give credits to me :D
- --// Anyways, enjoy the script!!!!!!!!!!!!!!!
- plr = game.Players.LocalPlayer
- char = plr.Character
- ff = Instance.new('ForceField', char)
- ff.Visible = false
- mouse = plr:GetMouse()
- human = char.Humanoid
- torso = char.Torso
- root = char.HumanoidRootPart
- lleg = char["Left Leg"]
- rleg = char["Right Leg"]
- larm = char["Left Arm"]
- rarm = char["Right Arm"]
- head = char.Head
- lshold = torso["Left Shoulder"]
- rshold = torso["Right Shoulder"]
- neck = torso.Neck
- lhip = torso["Left Hip"]
- rhip = torso["Right Hip"]
- lscf = lshold.C0
- rscf = rshold.C0
- ncf = neck.C0
- lhcf = lhip.C0
- rhcf = rhip.C0
- rad = math.rad
- random = math.random
- sin = math.sin
- cos = math.cos
- floor = math.floor
- lsho = lshold.C0
- rsho = rshold.C0
- cd1 = true
- cd2 = true
- function harmlessexplo()
- sph = Instance.new('Part', char)
- sph.Anchored = true
- sph.CFrame = char.Torso.CFrame
- sph.CanCollide = false
- sph.Anchored = true
- sph.Transparency = 0
- sph.Material = "Neon"
- sph.Shape = "Ball"
- sph.Size = Vector3.new(0.2,0.2,0.2)
- for i = 1,50 do
- wait()
- sph.Size = sph.Size + Vector3.new(4,4,4)
- sph.Transparency = sph.Transparency + 0.05
- sph.CFrame = char.Torso.CFrame
- end
- sph:Destroy()
- end
- function entrance()
- for _,q in pairs(char:GetChildren()) do
- if q:IsA('Accessory') then
- q:Destroy()
- end
- a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
- a.MeshId = "279174949"
- a.BodyPart = "LeftArm"
- a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
- a.MeshId = "319336109"
- a.BodyPart = "LeftLeg"
- a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
- a.MeshId = "279174886"
- a.BodyPart = "RightArm"
- a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
- a.MeshId = "319336155"
- a.BodyPart = "RightLeg"
- a = Instance.new('CharacterMesh', game.Players.LocalPlayer.Character)
- a.MeshId = "376169183"
- a.BodyPart = "Torso"
- if q:IsA('Shirt') then
- q.ShirtTemplate = "rbxassetid://704100781"
- end
- if q:IsA('Pants') then
- q.PantsTemplate = "rbxassetid://704102680"
- end
- char["Left Arm"].BrickColor = BrickColor.new('Cyan')
- char["Right Arm"].BrickColor = BrickColor.new('Cyan')
- if q.Name ~= "HumanoidRootPart" and q:IsA('Part') then
- q.Transparency = 1
- end
- end
- char.Humanoid.HipHeight = 60
- wait(.05)
- char.Torso.Anchored = true
- sph = Instance.new('Part', char)
- sph.Anchored = true
- sph.CFrame = char.Torso.CFrame
- sph.CanCollide = false
- sph.Anchored = true
- sph.Transparency = 0
- sph.Material = "Neon"
- sph.Shape = "Ball"
- sph.Size = Vector3.new(0.2,0.2,0.2)
- sp = Instance.new('SpecialMesh', sph)
- sp.MeshId = "http://www.roblox.com/Asset/?id=9982590"
- sp.Scale = Vector3.new(0.2,0.2,0.2)
- a = 0
- for i = 1, 25 do
- sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
- sp.Scale = sp.Scale + Vector3.new(0.3,0.3,0.3)
- sph.Rotation = Vector3.new( a, a, a)
- wait()
- a = a+3
- end
- for _,e in pairs(char:GetChildren()) do
- if e:IsA('Accessory') then
- e.Handle.Transparency = 0
- end
- if e.Name ~= "HumanoidRootPart" and e:IsA('Part') then
- e.Transparency = 0
- end
- end
- for i = 1, 115 do
- sph.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
- sph.Transparency = sph.Transparency + 0.01
- sph.Rotation = Vector3.new( a, a, a)
- wait()
- a = a+15
- end
- char.Torso.Anchored = false
- char.Humanoid.HipHeight = 0
- end
- function chat(chatt)
- local text = Instance.new("BillboardGui", game.Players.LocalPlayer.Character)
- text.Size = UDim2.new(0,100,0,40)
- text.StudsOffset = Vector3.new(0,3,0)
- text.Adornee = game.Players.LocalPlayer.Character.Head
- text.Name = "1"
- local text1 = Instance.new("TextLabel",text)
- text1.BackgroundTransparency = 1
- text1.TextStrokeTransparency = 1
- text1.TextTransparency = 1
- text1.BorderSizePixel = 0
- text1.Text = chatt
- text1.Font = "Fantasy"
- text1.FontSize = "Size36"
- text1.TextStrokeTransparency = 0
- text1.TextColor3 = Color3.new(1,1,1)
- text1.TextStrokeColor3 = Color3.new(0,0,0)
- text1.Size = UDim2.new(1,0,0.5,0)
- for i=1,15 do
- wait()
- text1.TextStrokeTransparency = text1.TextStrokeTransparency - 0.1
- text1.TextTransparency = text1.TextTransparency - 0.1
- end
- wait(1)
- for i=1,25 do
- wait()
- text1.TextStrokeTransparency = text1.TextStrokeTransparency + 0.1
- text1.TextTransparency = text1.TextTransparency + 0.1
- end
- end
- function explo()
- sph = Instance.new('Part', char)
- sph.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild('Humanoid') then
- if hit.Parent.Name ~= plr.Name then
- hit.Parent:Destroy()
- else
- end
- end
- end)
- sph.Anchored = true
- sph.CFrame = char.Torso.CFrame
- sph.CanCollide = false
- sph.Anchored = true
- sph.Transparency = 0
- sph.Material = "Neon"
- sph.Shape = "Ball"
- sph.Size = Vector3.new(0.2,0.2,0.2)
- for i = 1,50 do
- wait()
- sph.Size = sph.Size + Vector3.new(4,4,4)
- sph.Transparency = sph.Transparency + 0.03
- sph.CFrame = char.Torso.CFrame
- end
- sph:Destroy()
- end
- --// Main script, don't touch if you don't know how to script or you might ruin the script.
- entrance()
- mouse.Button1Down:connect(function()
- if cd1 then
- if mouse.Target.Parent:FindFirstChild('Humanoid') then
- cd1 = false
- local target = mouse.Target.Parent
- target:FindFirstChild('Torso').Anchored = true
- for i=0,1,0.1 do
- rshold.C0 = rshold.C0:lerp(CFrame.new(0.9,0.5,-0.1)*CFrame.Angles(rad(-90),rad(90),rad(-180)),i)
- wait()
- end
- chat("Destroy!")
- wait(.5)
- particle = Instance.new('Part', workspace)
- particle.Anchored = true
- particle.CFrame = target:FindFirstChild('Torso').CFrame
- particle.CanCollide = false
- particle.Anchored = true
- particle.Transparency = 1
- particle.Size = Vector3.new(6.52, 10.36, 6.34)
- local pe = Instance.new("ParticleEmitter")
- pe.Acceleration = Vector3.new(7, 7, 7)
- pe.Lifetime = NumberRange.new(1, 4)
- pe.Rate = 500
- pe.RotSpeed = NumberRange.new(7, 7)
- pe.LightEmission = 0.700
- pe.Rotation = NumberRange.new(0, 0)
- pe.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1, 0),
- NumberSequenceKeypoint.new(1, 10, 0),
- NumberSequenceKeypoint.new(1, 10, 0)
- })
- pe.Texture = "http://www.roblox.com/asset/?id=242996110"
- pe.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(0.4, 0.3, 0),
- NumberSequenceKeypoint.new(1, 1, 1)
- })
- pe.ZOffset = 5
- pe.VelocitySpread = 360
- pe.Parent = particle
- pe.Enabled = true
- wait(1)
- pe.Enabled = false
- target:Destroy()
- for i=0,1,0.1 do
- rshold.C0 = rshold.C0:lerp(rsho,i)
- wait()
- end
- wait(1)
- cd1 = true
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "t" then
- if cd1 then
- cd1 = false
- particle = Instance.new('Part', workspace)
- particle.Anchored = true
- particle.CFrame = char:FindFirstChild('Torso').CFrame
- particle.CanCollide = false
- particle.Anchored = true
- particle.Transparency = 1
- particle.Size = Vector3.new(6.52, 10.36, 6.34)
- local pe = Instance.new("ParticleEmitter")
- pe.Acceleration = Vector3.new(7, 7, 7)
- pe.Lifetime = NumberRange.new(1, 4)
- pe.Rate = 500
- pe.RotSpeed = NumberRange.new(7, 7)
- pe.LightEmission = 0.700
- pe.Rotation = NumberRange.new(0, 0)
- pe.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1, 0),
- NumberSequenceKeypoint.new(1, 10, 0),
- NumberSequenceKeypoint.new(1, 10, 0)
- })
- pe.Texture = "http://www.roblox.com/asset/?id=242996110"
- pe.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(0.4, 0.3, 0),
- NumberSequenceKeypoint.new(1, 1, 1)
- })
- pe.ZOffset = 5
- pe.VelocitySpread = 360
- pe.Parent = particle
- pe.Enabled = true
- wait(.3)
- char.Torso.CFrame = mouse.Hit
- pe.Enabled = false
- harmlessexplo()
- wait(3)
- cd1 = true
- end
- end
- if key == "q" then
- if cd2 then
- cd2 = false
- for i=0,1,0.1 do
- lshold.C0 = lshold.C0:lerp(CFrame.new(-1.3,0.7,-0.1)*CFrame.Angles(rad(25),-rad(20),-rad(90)),i)
- rshold.C0 = rshold.C0:lerp(CFrame.new(1.3,0.7,-0.1)*CFrame.Angles(rad(25),rad(20),rad(90)),i)
- wait()
- end
- local pe = Instance.new("ParticleEmitter")
- pe.Acceleration = Vector3.new(3, 3, 3)
- pe.Lifetime = NumberRange.new(0.1, 0.5)
- pe.Rate = 4000
- pe.RotSpeed = NumberRange.new(0, 0)
- pe.LightEmission = 0.700
- pe.Rotation = NumberRange.new(0, 0)
- pe.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1, 0),
- NumberSequenceKeypoint.new(0.1, 1, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- pe.Texture = "http://www.roblox.com/asset/?id=242996110"
- pe.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(0.4, 0.3, 0),
- NumberSequenceKeypoint.new(1, 1, 1)
- })
- pe.ZOffset = 5
- pe.VelocitySpread = 360
- pe.Parent = char["Right Arm"]
- pe1 = pe:Clone()
- pe1.Parent = char["Left Arm"]
- wait(.05)
- pe.Enabled = true
- wait(.05)
- for i= 1, 100 do
- char.Humanoid.HipHeight = char.Humanoid.HipHeight + 0.5
- wait()
- end
- wait(.03)
- chat("A world like this must disappear!")
- wait(.07)
- explo()
- wait(.04)
- for i=0,1,0.1 do
- lshold.C0 = lshold.C0:lerp(lsho,i)
- rshold.C0 = rshold.C0:lerp(rsho,i)
- wait()
- end
- pe.Enabled = false
- pe1.Enabled = fasle
- char.Humanoid.HipHeight = 0
- wait(5)
- cd2 = true
- end
- end
- end)
- while wait() do
- char.Humanoid.MaxHealth = 99999
- char.Humanoid.Health = char.Humanoid.MaxHealth
- end
Add Comment
Please, Sign In to add comment