Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 60 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/60) 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
- --By iiJoeCats
- --Some sources could be copied or stolen from other devs. I gave credit to them.
- print([[
- -- The Random Powers by iiJoeCats (DEMO)
- KEYBINDS:
- //Main Keybinds
- [Q] - Fireball
- [E] - Stomp
- [R] - Acid Rain
- [T] - T-Pose Taunt
- [Y] - Tele Hacks
- [U] - Bomb
- //Music Keybinds
- [N] - Toggle Music
- [M] - Change Music
- ]])
- ---------------------------------------------------------------
- local player = owner
- local character = player.Character
- ---------------------------------------------------------------
- local rArm = character["Right Arm"]
- local lArm = character["Left Arm"]
- local rLeg = character["Right Leg"]
- local lLeg = character["Left Leg"]
- -------------------------------------------
- local attack = false
- local targ = nil
- -------------------------------------------
- local root = character.HumanoidRootPart
- local rootJ = root.RootJoint
- -------------------------------------------
- local tors = character.Torso
- local head = character.Head
- local hum = character:FindFirstChildOfClass("Humanoid")
- -------------------------------------------
- local ids = {190423831,209436665,1801935021,491080872,986986864,210779207,1255569288,1251015452,582020393,1563991094,2787753799,2338004840,185558852,1986375341,569913318,586436338,510019324,1591230720,723652641,555947343,394236634,195822354,224584376,1576288222,199265353,322621962,569026863,502771070,408862087,1471935327,236336857,2280063143,334259331,344685843,1479420512,297754476,591661590,1571736139,2988953773,130768805,2516100492,580535766,213546066,2471149989,1033438052,282657398,323226722,418028388,595800581}
- local theme = Instance.new("Sound",root)
- theme.Volume = 4.9
- theme.Looped = true
- theme.Name = "Mozzys.exe"
- theme.SoundId = "rbxassetid://190423831"
- theme.MaxDistance = 1000
- theme.PlaybackSpeed = 1
- theme:Play()
- ---------------------------------------------------------------
- --Credit to mustardfoot for the CFrame lerp Function. Edited a bit.
- function lerp(weld,startpos,endpos,amntime,longatend)
- local waited = 0
- for i=1,amntime*100 do
- if longatend == true then
- startpos = weld.C0
- end
- weld.C0 = startpos:lerp(endpos,i/(amntime*100))
- waited=waited+0.01
- game:GetService("RunService").Stepped:wait()
- end
- end
- function removeItem(item,timer)
- game:GetService("Debris"):AddItem(item,timer)
- end
- function createSoundEffect(parent,id,volume,pitch,timeposition,cleanuptime)
- local s = Instance.new("Sound",parent)
- s.Volume = volume
- s.SoundId = id
- s.PlaybackSpeed = pitch
- s.TimePosition = timeposition
- s:Play()
- removeItem(s,cleanuptime)
- end
- ---------------------------------------------------------------
- local function morph()
- local ColorsArray = {
- ColorSequenceKeypoint.new(0, Color3.new(1,0,0)),
- ColorSequenceKeypoint.new(0.2, Color3.new(1, 0.333333, 0)),
- ColorSequenceKeypoint.new(0.4, Color3.new(1, 1, 0)),
- ColorSequenceKeypoint.new(0.6, Color3.new(0, 1, 0)),
- ColorSequenceKeypoint.new(0.8, Color3.new(0, 0.666667, 1)),
- ColorSequenceKeypoint.new(1, Color3.new(0.74902, 0, 1))
- }
- local pe = Instance.new("ParticleEmitter",lArm)
- pe.Speed = NumberRange.new(0, 0)
- pe.Color = ColorSequence.new(ColorsArray)
- pe.LightInfluence = 1
- pe.Size = NumberSequence.new(.5,.5)
- pe.Lifetime = NumberRange.new(0.5, 0.5)
- pe.LockedToPart = false
- pe.Rate = 17
- local pe2 = Instance.new("ParticleEmitter",rLeg)
- pe2.Speed = NumberRange.new(0, 0)
- pe2.Color = ColorSequence.new(ColorsArray)
- pe2.LightInfluence = 1
- pe2.Size = NumberSequence.new(.5,.5)
- pe2.Lifetime = NumberRange.new(0.5, 0.5)
- pe2.LockedToPart = false
- pe2.Rate = 17
- local pe3 = Instance.new("ParticleEmitter",rArm)
- pe3.Speed = NumberRange.new(0, 0)
- pe3.Color = ColorSequence.new(ColorsArray)
- pe3.LightInfluence = 1
- pe3.Size = NumberSequence.new(.5,.5)
- pe3.Lifetime = NumberRange.new(0.5, 0.5)
- pe3.LockedToPart = false
- pe3.Rate = 17
- local pe4 = Instance.new("ParticleEmitter",lLeg)
- pe4.Speed = NumberRange.new(0, 0)
- pe4.Color = ColorSequence.new(ColorsArray)
- pe4.LightInfluence = 1
- pe4.Size = NumberSequence.new(.5,.5)
- pe4.Lifetime = NumberRange.new(0.5, 0.5)
- pe4.LockedToPart = false
- pe4.Rate = 17
- end
- pcall(function()
- morph()
- end)
- ---------------------------------------------------------------
- mouse.KeyDown:Connect(function(key)
- if key == "m" then
- if not theme.Playing == false then
- local pickRand = ids[math.random(1,#ids)]
- theme.SoundId = "rbxassetid://"..pickRand
- theme:Play()
- else
- theme:Stop()
- end
- end
- if key == "n" then
- theme.Playing = not theme.Playing
- end
- if attack == true then return end
- if key == "q" then
- attack = true
- local raWeld = Instance.new("Weld",tors)
- raWeld.Part0 = tors
- raWeld.Part1 = rArm
- raWeld.C0 = CFrame.new(1.5,0,0)
- local begin = coroutine.wrap(function()
- lerp(raWeld,raWeld.C0,CFrame.new(1.5,.5,-.5) * CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),0.1,true)
- end)
- local fireball = Instance.new("Part",workspace)
- game:GetService("Debris"):AddItem(fireball,5)
- fireball.Size = Vector3.new(3,3,3)
- fireball.Material = Enum.Material.Neon
- fireball.BrickColor = BrickColor.new("Really red")
- fireball.Transparency = 0.4
- fireball.CanCollide = false
- fireball.Shape = Enum.PartType.Ball
- fireball.CFrame = CFrame.new(tors.Position, Vector3.new(mouse.Hit.p.x,mouse.Hit.p.y,mouse.Hit.p.z))
- begin()
- local bv = Instance.new("BodyVelocity",fireball)
- bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bv.Velocity = fireball.CFrame.LookVector * 100
- fireball.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn and humn.Health > 0 then
- if hit:IsDescendantOf(character) then return end
- local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
- if not findAlreadyHit then
- Instance.new("ObjectValue",humn.Parent).Name = "burn"
- humn:TakeDamage(math.random(25,47))
- wait(1.4)
- humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
- else
- --nothing
- end
- end
- end)
- local endAnim = coroutine.wrap(function()
- lerp(raWeld,raWeld.C0,CFrame.new(1.5,0,0),0.1,true)
- raWeld:Destroy()
- end)
- wait(1)
- endAnim()
- attack = false
- end
- if key == "e" then
- attack = true
- local rLegWeld = Instance.new("Weld",tors)
- rLegWeld.Part0 = tors
- rLegWeld.Part1 = rLeg
- rLegWeld.C0 = CFrame.new(.5,-2,0)
- local blockEffect = coroutine.wrap(function()
- local impact = Instance.new("Part",workspace)
- removeItem(impact,3)
- createSoundEffect(impact,"rbxassetid://438666141",3,1,0,3.4)
- impact.Name = "ImpactCrash"
- impact.Anchored = true
- impact.Material = "Neon"
- impact.TopSurface = "Smooth"
- impact.BottomSurface = "Smooth"
- impact.Size = Vector3.new(15,.25,15)
- impact.BrickColor = BrickColor.new("Bright yellow")
- impact.CanCollide = false
- impact.CFrame = root.CFrame * (CFrame.new(0,-2.9,0) * CFrame.Angles(0,0,0))
- local msh = Instance.new("SpecialMesh",impact)
- msh.MeshType = Enum.MeshType.Sphere
- impact.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn and humn.Health > 0 then
- if hit:IsDescendantOf(character) then return end
- local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
- if not findAlreadyHit then
- Instance.new("ObjectValue",humn.Parent).Name = "burn"
- humn:TakeDamage(math.random(50,76))
- wait(3)
- humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
- else
- --nothing
- end
- end
- end)
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- for i = 0,1,0.01 do
- wait()
- impact.Size = impact.Size + Vector3.new(.5,0,.5)
- impact.CFrame = impact.CFrame + Vector3.new(0,0.01,0)
- impact.Transparency = impact.Transparency + i
- end
- end), impact)
- end)
- local resetRootJ = coroutine.wrap(function()
- lerp(rootJ,rootJ.C0,CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),0.2,true)
- end)
- local begin = coroutine.wrap(function()
- lerp(rootJ,rootJ.C0,CFrame.fromEulerAnglesXYZ(math.rad(-70),math.rad(0),math.rad(180)),0.05,true)
- end)
- --rLegWeld.C0 = CFrame.new(.5,-2,0)
- lerp(rLegWeld,rLegWeld.C0,CFrame.new(.5,-1.2,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(-20),math.rad(0),math.rad(0)),0.05,true)
- begin()
- wait(.5)
- local new = coroutine.wrap(function()
- lerp(rLegWeld,rLegWeld.C0,CFrame.new(.5,-1.7,-.5) * CFrame.fromEulerAnglesXYZ(math.rad(20),math.rad(0),math.rad(0)),0.05,true)
- end)
- lerp(rootJ,rootJ.C0,CFrame.fromEulerAnglesXYZ(math.rad(-110),math.rad(0),math.rad(180)),0.05,true)
- new()
- wait(0.1)
- blockEffect()
- local returntonorm = coroutine.wrap(function()
- lerp(rLegWeld,rLegWeld.C0,CFrame.new(.5,-2,0),0.05,true)
- wait(0.1)
- end)
- resetRootJ()
- returntonorm()
- rLegWeld:Destroy()
- wait(0.2)
- attack = false
- end
- if key == "r" then
- attack = true
- createSoundEffect(workspace,"rbxassetid://1516791621",4,1,0,15)
- for i = 1,15*15 do
- local prt = Instance.new("Part",workspace)
- removeItem(prt,4)
- prt.Material = Enum.Material.Neon
- prt.CanCollide = false
- prt.Size = Vector3.new(1,3,1)
- prt.BrickColor = BrickColor.new("Lime green")
- prt.Transparency = 0.4
- prt.Position = root.Position + Vector3.new(math.random(-100,100),350,math.random(-100,100))
- prt.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn and humn.Health > 0 then
- if hit:IsDescendantOf(character) then return end
- local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
- if not findAlreadyHit then
- Instance.new("ObjectValue",humn.Parent).Name = "ass"
- humn:TakeDamage(math.random(5,19))
- wait(0.07)
- humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
- else
- --nothing
- end
- end
- end)
- wait(0.06)
- end
- wait(0.4)
- attack = false
- end
- if key == "t" then
- attack = true
- hum.WalkSpeed = 0
- hum.JumpPower = 0
- character.Animate.Disabled = true
- local raWeld = Instance.new("Weld",character.Torso)
- raWeld.Part0 = character.Torso
- raWeld.Part1 = character["Right Arm"]
- raWeld.C0 = CFrame.new(1.5,0,0)
- local laWeld = Instance.new("Weld",character.Torso)
- laWeld.Part0 = character.Torso
- laWeld.Part1 = character["Left Arm"]
- laWeld.C0 = CFrame.new(-1.5,0,0)
- local arm1 = coroutine.wrap(function()
- lerp(raWeld,raWeld.C0,CFrame.new(2,.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)),0.05,true)
- end)
- local arm2 = coroutine.wrap(function()
- lerp(laWeld,laWeld.C0,CFrame.new(-2,.5,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)),0.05,true)
- end)
- arm1()
- arm2()
- createSoundEffect(workspace,"rbxassetid://3154962208",4.6,1,0,1.25)
- local function reset()
- local one = coroutine.wrap(function()
- lerp(raWeld,raWeld.C0,CFrame.new(1.5,0,0),0.3,true)
- end)
- one()
- lerp(laWeld,laWeld.C0,CFrame.new(-1.5,0,0),0.3,true)
- end
- wait(4)
- reset()
- character.Animate.Disabled = false
- hum.WalkSpeed = 16
- hum.JumpPower = 50
- raWeld:Destroy()
- laWeld:Destroy()
- attack = false
- end
- if key == "y" then
- attack = true
- character:MoveTo(mouse.Hit.p + Vector3.new(0,1,0))
- wait(3)
- attack = false
- end
- if key == "u" then
- attack = true
- local prt = Instance.new("Part",workspace)
- prt:BreakJoints()
- prt.CanCollide = false
- prt.Anchored = true
- prt.Shape = Enum.PartType.Ball
- prt.Name = "Fireball"
- prt.Size = Vector3.new(1)
- prt.BrickColor = BrickColor.new(255,0,0)
- prt.Material = Enum.Material.Neon
- prt.Transparency = 0
- prt.Position = mouse.Hit.p
- wait(2)
- local tService = game:GetService("TweenService")
- local info = TweenInfo.new(3,Enum.EasingStyle.Bounce,Enum.EasingDirection.In)
- local goal = {}
- goal.Size = Vector3.new(500,500,500)
- goal.Color = Color3.fromRGB(255,255,0)
- goal.Transparency = 1
- local tw = tService:Create(prt,info,goal)
- tw:Play()
- prt.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn and humn.Health > 0 then
- if hit:IsDescendantOf(character) then return end
- local findAlreadyHit = humn.Parent:FindFirstChildOfClass("ObjectValue")
- if not findAlreadyHit then
- Instance.new("ObjectValue",humn.Parent).Name = "wtf"
- humn:TakeDamage(math.random(75,99))
- wait(4)
- humn.Parent:FindFirstChildOfClass("ObjectValue"):Destroy()
- else
- --nothing
- end
- end
- end)
- wait(5)
- prt:Destroy()
- wait(2)
- attack = false
- end
- end)
- -----------------------END OF SCRIPT----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement