Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[hecknes1800]]--
- 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")
- 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
- local char = Player.Character
- local hum = char:WaitForChild("Humanoid")
- print("Do Not Point Up! Reset If You Did!")
- en = true
- ButtonDown = true
- mouse.KeyDown:connect(function(key)
- if en == false then return end
- key = key:lower()
- if key == "q" then
- en = false
- local sounds = Instance.new("Sound",workspace)
- local pa = Instance.new("Part")
- local ma = Instance.new("Part")
- sounds.Looped = false
- sounds.Volume = 10
- sounds.SoundId = ("rbxassetid://1398471768")
- sounds:Play()
- local Fr = Instance.new("Part")
- local woosh = Instance.new("Sound",Fr)
- woosh.SoundId = "rbxassetid://1846550529"
- ma.Parent = Fr
- ma.CFrame = char.Head.CFrame+Vector3.new(0,1,0)
- ma.Anchored = true
- ma.CanCollide = false
- ma.Transparency = 1
- ma.Size = Vector3.new(10,0.00001,10)
- local dec = Instance.new("Decal",ma)
- dec.Texture = ("http://www.roblox.com/asset/?id=1003309602")
- dec.Face = ("Top")
- local dec2 = dec:Clone()
- dec2.Parent = ma
- dec2.Face = ("Bottom")
- pa.Parent = Fr
- local mesh = Instance.new("SpecialMesh",pa)
- mesh.MeshId = ("http://www.roblox.com/asset/?id=3270017")
- pa.BrickColor = BrickColor.new("Medium stoneg rey")
- pa.Transparency = 0.4
- local fire = Instance.new("Fire",Fr)
- Fr.Shape = ("Ball")
- fire.Color = Color3.fromRGB(15,7,236)
- fire.Heat = 9
- fire.Size = 7
- fire.SecondaryColor = Color3.fromRGB(255,8,0)
- Fr.Transparency = 0
- Fr.Material = ("Neon")
- Fr.Parent = char
- Fr.Anchored = true
- Fr.CFrame = char.Torso.CFrame*CFrame.new(0,5,0)
- Fr.BrickColor = BrickColor.new("Really black")
- Fr.Name = ("Astroid Bomb")
- Fr.CanCollide = false
- ---Forces---
- local BG = Instance.new("BodyGyro", char.Torso)
- BG.Name = "SkillGyro"
- BG.D = 100
- BG.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
- local BP = Instance.new("BodyPosition", char.Torso)
- BP.Position = char.HumanoidRootPart.Position
- BP.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- pa.Anchored = true
- pa.CFrame = Fr.CFrame
- mesh.Scale = Vector3.new(5,5,5)
- ------------
- --Charging
- while ButtonDown == true do
- local pos = mouse.Hit.p
- BG.CFrame = CFrame.new(char.Torso.Position, pos)
- Fr.Size = Fr.Size+Vector3.new(0.008,0.008,0.008)
- Fr.CFrame = Fr.CFrame*CFrame.new(0,0.008,0)
- mesh.Scale = mesh.Scale+Vector3.new(0.05,0.05,0.05)
- pa.CFrame = pa.CFrame*CFrame.new(0,0.01,0)
- pa.Orientation = pa.Orientation+Vector3.new(0.5,0.5,0.5)
- ma.Size = ma.Size+Vector3.new(0.01,0,0.01)
- ma.CFrame = ma.CFrame*CFrame.new(0,0.005,0)
- wait()
- end
- woosh:Play()
- --
- Fr.CFrame = char.Torso.CFrame*CFrame.new(0,0, -5)
- Fr.Anchored = false
- local BV = Instance.new("BodyVelocity")
- BV.Parent = Fr
- BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- BV.Velocity = char.Torso.CFrame.lookVector*100
- pa.Transparency = 0.7
- wait()
- pa.Transparency = 0.8
- wait()
- pa.Transparency = 0.9
- wait()
- pa.Transparency = 1
- local ten = true
- ---Damaging--
- Fr.Touched:connect(function(hit)
- if ten == false then return end
- ten = false
- local ehum = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
- if ehum and ehum ~= hum then
- ehum:TakeDamage(20)
- Fr.Transparency = 1
- Fr.Anchored = true
- Fr.CanCollide = false
- local sound = Instance.new("Sound",workspace)
- sound.SoundId = ("rbxassetid://138186576")
- sound:Play()
- elseif hit.Anchored == true and hit.CanCollide == true then
- local sound = Instance.new("Sound",workspace)
- sound.SoundId = ("rbxassetid://138186576")
- sound:Play()
- hit.Color = Color3.fromRGB(2,2,2)
- hit.Material = ("Neon")
- for i = 1, 20 do
- Fr.Transparency = 1
- Fr.Anchored = true
- Fr.CanCollide = false
- hum.CameraOffset = Vector3.new(math.random(-0.7,0.7),math.random(-0.7,0.7),math.random(-0.7,0.7))
- wait()
- end
- hum.CameraOffset = Vector3.new(0,0,0)
- local cloud = Instance.new("Part",Fr)
- cloud.CanCollide = true
- cloud.Anchored = true
- local clm = Instance.new("SpecialMesh",cloud)
- clm.Parent = cloud
- clm.MeshId = ("rbxassetid://700927324")
- clm.Scale = Vector3.new(10,10,10)
- cloud.Position = Fr.Position
- cloud.BrickColor = BrickColor.new("Dark stone grey")
- for i = 1, 20 do
- print("i")
- clm.Scale = clm.Scale+Vector3.new(0.05,0.05,0.05)
- wait()
- end
- for i = 1,20 do
- cloud.Transparency = cloud.Transparency + 0.1
- wait()
- end
- cloud:Destroy()
- end
- wait(1)
- Fr:Destroy()
- BG:remove()
- BP:remove()
- sounds:Stop()
- hit.Color = Color3.fromRGB(2,2,2)
- wait(0.1)
- hit.Color = Color3.fromRGB(5,5,5)
- wait(0.1)
- hit.Color = Color3.fromRGB(8,8,8)
- wait(0.1)
- hit.Color = Color3.fromRGB(11,11,11)
- wait(0.1)
- hit.Color = Color3.fromRGB(14,14,14)
- ten = true
- end)
- end
- wait(3)
- ButtonDown = true
- en = true
- end)
- mouse.KeyUp:connect(function(key)
- key = key:lower()
- if key == "q" then
- ButtonDown = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment