Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
- InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput"
- local function NewFakeEvent()
- local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
- return Fake
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Function then
- Trigger.Function(...)
- end
- end
- Mouse.TrigEvent = TriggerEvent
- UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then end
- if Input.MouseEvent then
- Mouse.Target = Input.Target
- Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then
- return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
- end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do
- if Key==Input.KeyCode then
- Action.Function(Action.Name,Input.UserInputState,Input)
- end
- end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse
- InternalData["ContextActionService"] = ContextActionService
- InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner
- local Event = script:WaitForChild("UserInput")
- local UserInputService = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input)
- UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)
- return InternalData["Mouse"]
- end
- end
- return function (self,...)
- return RealPlayer[Index](RealPlayer,...)
- end
- else
- if Index == "PlrObj" then
- return RealPlayer
- end
- return RealPlayer[Index]
- end
- end;
- __tostring = function(self)
- return RealPlayer.Name
- end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- if Service:lower() == "players" then
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "localplayer" then
- return Sandbox(owner)
- end
- return RealService[Index2]
- end
- end;
- __tostring = function(self)
- return RealGame:GetService(Service).Name
- end
- })
- elseif Service:lower() == "contextactionservice" then
- return InternalData["ContextActionService"]
- elseif Service:lower() == "contextactionservice" then
- return InternalData["UserInputService"]
- elseif Service:lower() == "runservice" then
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "bindtorenderstep" then
- return function (self,Name,Priority,Function)
- return RealGame:GetService("RunService").Stepped:Connect(Function)
- end
- end
- if Index2:lower() == "renderstepped" then
- return RealService["Stepped"]
- end
- return RealService[Index2]
- end
- end
- })
- else
- return RealGame:GetService(Service)
- end
- end
- end
- return function (self,...)
- return RealGame[Index](RealGame,...)
- end
- else
- if game:GetService(Index) then
- return game:GetService(Index)
- end
- return RealGame[Index]
- end
- else
- return nil
- end
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
- --
- Player = game:GetService("Players").LocalPlayer
- Char = Player.Character
- --
- local ShockWave = Instance.new("Part", Char)
- local Wave = Instance.new("SpecialMesh", ShockWave)
- Wave.MeshId = "http://www.roblox.com/asset/?id=20329976"
- ShockWave.Transparency = 1
- ShockWave.CanCollide = false
- ShockWave.Anchored = true
- Floating = true
- Attacking = false
- Char.Humanoid.HipHeight = 1
- --
- local root = Char.HumanoidRootPart
- local larm = Char["Left Arm"]
- local rarm = Char["Right Arm"]
- local lleg = Char["Left Leg"]
- local rleg = Char["Right Leg"]
- local hed = Char.Head
- local torso = Char.Torso
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0.1, 0.6, 0.2) * CFrame.Angles(math.rad(-17,97), math.rad(168.77), math.rad(-11.14))
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(-0.1, 0.6, 0.2) * CFrame.Angles(math.rad(-17.97), math.rad(191.23), math.rad(11.32))
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 0.9, 0) * CFrame.Angles(math.rad(-15),math.rad(180),math.rad(0.09))
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 0.9, 0) * CFrame.Angles(math.rad(-15),math.rad(180),math.rad(0.09))
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function(key)
- if key:lower() == 'e' and Attacking == false then
- Attacking = true
- hed.Anchored = true
- larm.Weld.C1 = CFrame.new(0, 0.9, 0.2) * CFrame.Angles(math.rad(28.24), math.rad(-171.2), math.rad(171.24))
- local Part1 = Instance.new("Part", larm)
- Part1.Anchored = true
- Part1.Size = Vector3.new(1,1,1)
- Part1.Color = Color3.fromRGB(91, 93, 105)
- Part1.Material = "Neon"
- Part1.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(0,math.rad(-130),0)
- local Part2 = Instance.new("Part", larm)
- Part2.Anchored = true
- Part2.Size = Vector3.new(1,1,1)
- Part2.Color = Color3.fromRGB(163, 162, 165)
- Part2.Transparency = 0.7
- Part2.Material = "Neon"
- Part2.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(math.rad(55.63),math.rad(-40),math.rad(-30))
- local Part3 = Instance.new("Part", larm)
- Part3.Anchored = true
- Part3.Size = Vector3.new(1,1,1)
- Part3.Color = Color3.fromRGB(99, 95, 98)
- Part3.Material = "Neon"
- Part3.CFrame = larm.CFrame * CFrame.new(0,-1.8,0) * CFrame.Angles(math.rad(-14),math.rad(63),math.rad(-27))
- wait(0.2)
- local Model = Instance.new("Model", game.workspace)
- local Cloud1 = Instance.new("Part", Model)
- Cloud1.Position = Mouse.Hit.p
- Cloud1.CFrame = Cloud1.CFrame * CFrame.new(0,22.2,-1)
- Cloud1.Size = Vector3.new(8.5,2,5)
- Cloud1.Color = Color3.fromRGB(88,88,91)
- Cloud1.Anchored = true
- Cloud1.Material = "Glass"
- local Cloud2 = Instance.new("Part", Model)
- Cloud2.CFrame = Cloud1.CFrame * CFrame.new(-0.8,-0.5,2.7)
- Cloud2.Size = Vector3.new(5.6,1.5,3.5)
- Cloud2.Color = Color3.fromRGB(88,88,91)
- Cloud2.Anchored = true
- Cloud2.Material = "Glass"
- local Cloud3 = Instance.new("Part", Model)
- Cloud3.CFrame = Cloud1.CFrame * CFrame.new(0.5,-0.4,-3)
- Cloud3.Size = Vector3.new(6,2,2)
- Cloud3.Color = Color3.fromRGB(88,88,91)
- Cloud3.Anchored = true
- Cloud3.Material = "Glass"
- local Lightning1 = Instance.new("Part", Model)
- Lightning1.Position = Mouse.Hit.p
- Lightning1.CFrame = Lightning1.CFrame * CFrame.new(0,2.25,0) * CFrame.Angles(0,0,0)
- Lightning1.Size = Vector3.new(1,5.5,1)
- Lightning1.Color = Color3.fromRGB(84, 77, 0)
- Lightning1.Anchored = true
- Lightning1.Material = "Neon"
- local Lightning2 = Instance.new("Part", Model)
- Lightning2.Position = Mouse.Hit.p
- Lightning2.CFrame = Lightning1.CFrame * CFrame.new(-1.2,4.1,-1) * CFrame.Angles(math.rad(-30),math.rad(0),math.rad(30))
- Lightning2.Size = Vector3.new(1,5.5,1)
- Lightning2.Color = Color3.fromRGB(84, 77, 0)
- Lightning2.Anchored = true
- Lightning2.Material = "Neon"
- local Lightning3 = Instance.new("Part", Model)
- Lightning3.Position = Mouse.Hit.p
- Lightning3.CFrame = Lightning2.CFrame * CFrame.new(2,3,1) * CFrame.Angles(math.rad(60),math.rad(0),math.rad(-60))
- Lightning3.Size = Vector3.new(1,5.5,1)
- Lightning3.Color = Color3.fromRGB(84, 77, 0)
- Lightning3.Anchored = true
- Lightning3.Material = "Neon"
- local Lightning4 = Instance.new("Part", Model)
- Lightning4.Position = Mouse.Hit.p
- Lightning4.CFrame = Lightning3.CFrame * CFrame.new(-2.2,4.4,-1.7) * CFrame.Angles(math.rad(-30),math.rad(-15),math.rad(45))
- Lightning4.Size = Vector3.new(1,8,1)
- Lightning4.Color = Color3.fromRGB(84, 77, 0)
- Lightning4.Anchored = true
- Lightning4.Material = "Neon"
- local Lightning5 = Instance.new("Part", Model)
- Lightning5.Position = Mouse.Hit.p
- Lightning5.CFrame = Lightning4.CFrame * CFrame.new(1,5,0.1) * CFrame.Angles(math.rad(30),math.rad(15),math.rad(-45))
- Lightning5.Size = Vector3.new(1,4,1)
- Lightning5.Color = Color3.fromRGB(84, 77, 0)
- Lightning5.Anchored = true
- Lightning5.Material = "Neon"
- local Lightning6 = Instance.new("Part", Model)
- Lightning6.Position = Mouse.Hit.p
- Lightning6.CFrame = Lightning5.CFrame * CFrame.new(-1,0,1) * CFrame.Angles(math.rad(0),math.rad(20),math.rad(40))
- Lightning6.Size = Vector3.new(1,4,1)
- Lightning6.Color = Color3.fromRGB(84, 77, 0)
- Lightning6.Anchored = true
- Lightning6.Material = "Neon"
- Mouse.TargetFilter = workspace.Model
- local Hit = Instance.new("Part", Model)
- Hit.Transparency = 0
- Hit.Position = Mouse.Hit.p
- Hit.CFrame = Lightning1.CFrame * CFrame.new(0,-2,0)
- Hit.CanCollide = false
- Hit.Anchored = true
- Hit.Size = Vector3.new(4,4,4)
- Hit.Color = Color3.fromRGB(84, 77, 0)
- Hit.Material = "Neon"
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 1,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- local partProperties = {
- CFrame = Hit.CFrame * CFrame.Angles(math.rad(-45),math.rad(-80),math.rad(5.5));
- Size = Vector3.new(6,6,6);
- }
- local Open = tweenService:Create(Hit,tweenInformation,partProperties)
- Open:Play()
- wait(1)
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 0.2,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- local partProperties = {
- CFrame = Hit.CFrame * CFrame.Angles(math.rad(65),math.rad(286),math.rad(19));
- Size = Vector3.new(0,0,0);
- Transparency = 1
- }
- local Close = tweenService:Create(Hit,tweenInformation,partProperties)
- Close:Play()
- wait(0.2)
- local Circle = Instance.new("Part", Model)
- Circle.Shape = "Ball"
- Circle.Size = Vector3.new(0,0,0)
- Circle.Color = Color3.fromRGB(84, 77, 0)
- Circle.Material = "Neon"
- Circle.CFrame = Hit.CFrame
- Circle.Anchored = true
- Circle.CanCollide = false
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 0.3,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- local partProperties = {
- Size = Vector3.new(15,15,15);
- }
- local CircleOpen = tweenService:Create(Circle,tweenInformation,partProperties)
- CircleOpen:Play()
- Circle.Touched:connect(function(plr)
- if plr.Parent:FindFirstChildOfClass("Humanoid") then
- if plr.Parent:FindFirstChildOfClass("Humanoid").MaxHealth <= 100000 then
- plr.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(100000)
- else
- plr.Parent:BreakJoints()
- end
- end
- end)
- wait(0.1)
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 0.2,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.Out,
- 0,
- false,
- 0
- )
- local partProperties = {
- Transparency = 1
- }
- local CircleTransparency = tweenService:Create(Circle,tweenInformation,partProperties)
- CircleTransparency:Play()
- wait(0.5)
- Model:Destroy()
- wait(0.5)
- hed.Anchored = false
- Part1:Destroy()
- Part2:Destroy()
- Part3:Destroy()
- Attacking = false
- larm.Weld.C1 = CFrame.new(0.1, 0.6, 0.2) * CFrame.Angles(math.rad(-17,97), math.rad(168.77), math.rad(-11.14))
- end
- end)
- repeat
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 1.5,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.In,
- 0,
- false,
- 0
- )
- local partProperties = {
- HipHeight = 1.5
- }
- local Up = tweenService:Create(Char.Humanoid,tweenInformation,partProperties)
- Up:Play()
- wait(1.5)
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 1.5,
- Enum.EasingStyle.Linear,
- Enum.EasingDirection.In,
- 0,
- false,
- 0
- )
- local partProperties = {
- HipHeight = 1
- }
- local Down = tweenService:Create(Char.Humanoid,tweenInformation,partProperties)
- Down:Play()
- wait(1.5)
- if SW then
- SW:Destroy()
- end
- SW = ShockWave:Clone()
- SW.CanCollide = false
- SW.Anchored = true
- SW.CFrame = torso.CFrame * CFrame.new(0,-4,0)
- SW.Material = "Grass"
- SW.Color = Color3.fromRGB(44, 101, 29)
- SW.Parent = Char
- SW.Transparency = 0
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 3,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.In,
- 0,
- false,
- 0
- )
- local partProperties = {
- Scale = Vector3.new(2.5,2.5,2.5)
- }
- local Waveout = tweenService:Create(SW.Mesh,tweenInformation,partProperties)
- Waveout:Play()
- local tweenService = game:GetService("TweenService")
- local tweenInformation = TweenInfo.new (
- 3,
- Enum.EasingStyle.Quad,
- Enum.EasingDirection.In,
- 0,
- false,
- 0
- )
- local partProperties = {
- Transparency = 1
- }
- local WaveFade = tweenService:Create(SW,tweenInformation,partProperties)
- WaveFade:Play()
- until
- Floating == false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement