Advertisement
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
- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --password
- jun = owner
- Stuff = false
- --password
- function ssj()
- if Stuff == false then
- Stuff = true
- for u, c in pairs (jun.Character:GetChildren()) do
- if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
- c.Handle.Transparency = 1
- end
- end
- Hair22 = Instance.new("Part")
- Hair22.Parent = jun.Character
- Hair22.Name = "Hair"
- Hair22.formFactor = "Symmetric"
- Hair22.Size = Vector3.new(1, 1, 1)
- Hair22.CFrame = jun.Character.Head.CFrame
- Hair22:BreakJoints()
- Hair22.CanCollide = false
- Hair22.TopSurface = "Smooth"
- Hair22.BottomSurface = "Smooth"
- Hair22.BrickColor = BrickColor.new("Bright yellow")
- Weld = Instance.new("Weld")
- Weld.Part0 = jun.Character.Head
- Weld.Part1 = Hair22
- Weld.Parent = jun.Character.Head
- Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hair22
- Mesh.MeshType = "Sphere"
- Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
- Hair4 = Instance.new("Part")
- Hair4.Parent = jun.Character
- Hair4.Name = "Hair"
- Hair4.CanCollide = false
- Hair4.Locked = true
- Hair4.TopSurface = "Smooth"
- Hair4.BottomSurface = "Smooth"
- Hair4.formFactor = "Symmetric"
- Hair4.BrickColor = BrickColor.new("Bright yellow")
- Hair4.CFrame = jun.Character.Torso.CFrame
- Hair4.Size = Vector3.new(1, 1, 1)
- Weld = Instance.new("Weld")
- Weld.Parent = jun.Character.Head
- Weld.Part0 = jun.Character.Head
- Weld.Part1 = Hair4
- Weld.C0 = CFrame.new(0, 1, 0)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hair4
- Mesh.Scale = Vector3.new(1.15, 1.8, 1.26)
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
- Mesh.TextureId = ""
- Effect = Instance.new("Part")
- Effect.Parent = jun.Character
- Effect.Anchored = true
- Effect.CanCollide = false
- Effect.Size = Vector3.new(1, 1, 1)
- Effect.formFactor = "Symmetric"
- Effect.Transparency = 0.5
- Effect.BrickColor = BrickColor.new("Bright yellow")
- Effect.TopSurface = "Smooth"
- Effect.BottomSurface = "Smooth"
- EffectMesh = Instance.new("CylinderMesh")
- EffectMesh.Parent = Effect
- EffectMesh.Scale = Vector3.new(1, 1500, 1)
- --[[ex = Instance.new("Explosion")
- ex.Position = jun.Character.Torso.Position
- ex.BlastPressure = 0
- ex.Parent = workspace]]
- jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
- for i = 1 , 20 do
- Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
- EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2, 0, 2)
- Effect.Transparency = Effect.Transparency + 0.025
- wait(0.06)
- end
- Effect:Remove()
- if jun.Character.Torso:findFirstChild("PwnFire") == nil then
- pie = Instance.new("Fire")
- pie.Name = "PwnFire"
- pie.Parent = jun.Character.Torso
- pie.Size = 13
- pie.Color = BrickColor.new("Bright yellow")
- end
- if jun.Character.Torso:findFirstChild("PwnSparkles") == nil then
- pie = Instance.new("Sparkles")
- pie.Name = "PwnSparkles"
- pie.Parent = jun.Character.Torso
- pie.Color = BrickColor.new("Bright yellow")
- end
- jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth*1.5
- wait(0.3)
- jun.Character.Humanoid.Health = jun.Character.Humanoid.Health*1.5
- end
- end
- function nossj()
- if Stuff == true then
- Stuff = false
- if jun.Character.Torso:findFirstChild("PwnFire") ~= nil then
- jun.Character.Torso:findFirstChild("PwnFire"):Remove()
- end
- if jun.Character.Torso:findFirstChild("PwnSparkles") ~= nil then
- jun.Character.Torso:findFirstChild("PwnSparkles"):Remove()
- end
- p = Instance.new("Part")
- p.Parent = jun.Character
- p.Anchored = true
- p.CanCollide = false
- p.Transparency = 0.1
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(22, 22, 22)
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Name = "Sharingan"
- p.Shape = "Ball"
- p.CFrame = jun.Character.Torso.CFrame
- p.BrickColor = BrickColor.new("Bright yellow")
- for i = 1 , 10 do
- wait(0.05)
- p.Size = p.Size + Vector3.new(-4, -4, -4)
- p.Transparency = p.Transparency + 0.1
- p.CFrame = jun.Character.Torso.CFrame
- end
- p:Remove()
- for u, c in pairs (jun.Character:GetChildren()) do
- if c.className == "Hat" and c.Name ~= "Swordpack" and c.Name ~= "GlassesBlackFrame" then
- c.Handle.Transparency = 0
- end
- if c.Name == "Hair" then
- c:Remove()
- end
- end
- jun.Character.Humanoid.Health = jun.Character.Humanoid.Health/1.5
- wait(0.3)
- jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth/1.5
- end
- end
- jun.Chatted:connect(function(Msg)
- msg = Msg:lower()
- if string.sub(msg, 1, 7) == "pwnage" then
- wait(0.1)
- ssj()
- end
- if string.sub(msg, 1, 13) == "super saiyan" then
- wait(0.1)
- ssj()
- end
- if string.sub(msg, 1, 6) == "ssj" then
- wait(0.1)
- ssj()
- end
- if string.sub(msg, 1, 10) == "pwnd" then
- wait(0.1)
- nossj()
- end
- if string.sub(msg, 1, 3) == "off" then
- wait(0.1)
- nossj()
- end
- end)
- function OnDeath()
- wait()
- nossj()
- end
- jun.Character.Humanoid.Died:connect(OnDeath)
- jun = owner
- Stuff = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement