Advertisement
vL4d_4eVer

Untitled

Jul 30th, 2018
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.68 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5.     print("FE Compatibility code by Mokiros")
  6.     script.Parent = Player.Character
  7.  
  8.     --RemoteEvent for communicating
  9.     local Event = Instance.new("RemoteEvent")
  10.     Event.Name = "UserInput_Event"
  11.  
  12.     --Fake event to make stuff like Mouse.KeyDown work
  13.     local function fakeEvent()
  14.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15.         t.connect = t.Connect
  16.         return t
  17.     end
  18.  
  19.     --Creating fake input objects with fake variables
  20.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24.     end}
  25.     --Merged 2 functions into one by checking amount of arguments
  26.     CAS.UnbindAction = CAS.BindAction
  27.  
  28.     --This function will trigger the events that have been :Connect()'ed
  29.     local function te(self,ev,...)
  30.         local t = m[ev]
  31.         if t and t._fakeEvent and t.Function then
  32.             t.Function(...)
  33.         end
  34.     end
  35.     m.TrigEvent = te
  36.     UIS.TrigEvent = te
  37.  
  38.     Event.OnServerEvent:Connect(function(plr,io)
  39.         if plr~=Player then return end
  40.         m.Target = io.Target
  41.         m.Hit = io.Hit
  42.         if not io.isMouse then
  43.             local b = io.UserInputState == Enum.UserInputState.Begin
  44.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46.             end
  47.             for _,t in pairs(CAS.Actions) do
  48.                 for _,k in pairs(t.Keys) do
  49.                     if k==io.KeyCode then
  50.                         t.Function(t.Name,io.UserInputState,io)
  51.                     end
  52.                 end
  53.             end
  54.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56.         end
  57.     end)
  58.     Event.Parent = NLS([==[
  59.     local Player = game:GetService("Players").LocalPlayer
  60.     local Event = script:WaitForChild("UserInput_Event")
  61.  
  62.     local Mouse = Player:GetMouse()
  63.     local UIS = game:GetService("UserInputService")
  64.     local input = function(io,a)
  65.         if a then return end
  66.         --Since InputObject is a client-side instance, we create and pass table instead
  67.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  68.     end
  69.     UIS.InputBegan:Connect(input)
  70.     UIS.InputEnded:Connect(input)
  71.  
  72.     local h,t
  73.     --Give the server mouse data 30 times every second, but only if the values changed
  74.     --If player is not moving their mouse, client won't fire events
  75.     while wait(1/30) do
  76.         if h~=Mouse.Hit or t~=Mouse.Target then
  77.             h,t=Mouse.Hit,Mouse.Target
  78.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  79.         end
  80.     end]==],Player.Character)
  81.     local _rg = game
  82.     local function FakeService(t,RealService)
  83.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  84.         return setmetatable(t,{
  85.             __index = function(self,k)
  86.                 local s = rawget(self,"_RealService")
  87.                 if s then return s[k] end
  88.             end,
  89.             __newindex = function(self,k,v)
  90.                 local s = rawget(self,"_RealService")
  91.                 if s then s[k]=v end
  92.             end,
  93.         })
  94.     end
  95.     local g = FakeService({
  96.         GetService = function(self,s)
  97.             return self[s]
  98.         end,
  99.         Players = FakeService({
  100.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  101.         },"Players"),
  102.         UserInputService = FakeService(UIS,"UserInputService"),
  103.         ContextActionService = FakeService(CAS,"ContextActionService"),
  104.         RunService = FakeService({RenderStepped=game:GetService("RunService").Heartbeat},"RunService")
  105.     },game)
  106.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  107.     getmetatable(g).__index=function(self,s)
  108.         return _rg:GetService(s) or typeof(_rg[s])=="function"
  109.         and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  110.     end
  111.     game = g
  112.     owner = g.Players.LocalPlayer
  113. end
  114. local Player = game:GetService"Players".LocalPlayer
  115. print('I dont know who created original')
  116. print('But ITS edit, enjoy kiddo')
  117. print('No credits 4 u')
  118. warn("Edited By Gamekillertoy and then the edit got edited by Netdyninja696")
  119. local Character = Player.Character
  120. local Humanoid = Character.Humanoid
  121. local Mouse = Player:GetMouse()
  122. local Head = Character.Head
  123. local Camera = game.Workspace.CurrentCamera
  124. local attack = false
  125. local Anim = "Idle"
  126. local attacktype = 1
  127. local sine = 0
  128. local change = 1
  129. local equipped = false
  130. local maincolor = BrickColor.new("Really red")
  131. local hum = Character.Humanoid
  132. local Create = LoadLibrary("RbxUtility").Create
  133. local p = Instance.new("Part")
  134. local cn = CFrame.new
  135. local angles = CFrame.Angles
  136.  
  137. BillboardGui0 = Instance.new("BillboardGui")
  138. Frame1 = Instance.new("Frame")
  139. ImageLabel2 = Instance.new("ImageLabel")
  140. BillboardGui0.Parent = Head
  141. BillboardGui0.MaxDistance = 50
  142. BillboardGui0.Size = UDim2.new(0, 100, 0, 100)
  143. BillboardGui0.ExtentsOffset = Vector3.new(0, 8, 0)
  144. BillboardGui0.ClipsDescendants = true
  145. Frame1.Parent = BillboardGui0
  146. Frame1.Transparency = 1
  147. Frame1.Size = UDim2.new(0, 100, 0, 100)
  148. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  149. Frame1.BackgroundTransparency = 1
  150. ImageLabel2.Parent = Frame1
  151. ImageLabel2.Transparency = 1
  152. ImageLabel2.Size = UDim2.new(0, 100, 0, 100)
  153. ImageLabel2.BackgroundColor3 = Color3.new(1, 1, 1)
  154. ImageLabel2.BackgroundTransparency = 1
  155. ImageLabel2.Image = "rbxassetid://978938227"
  156.  
  157.  
  158.  
  159.  
  160. local HairMain = Instance.new("Part", Character)
  161. HairMain.Material = Enum.Material.Plastic
  162. HairMain.Size = Vector3.new(0,0,0)
  163. HairMain.BackSurface = "SmoothNoOutlines"
  164. HairMain.RightSurface = "SmoothNoOutlines"
  165. HairMain.TopSurface = "SmoothNoOutlines"
  166. HairMain.BottomSurface = "SmoothNoOutlines"
  167. HairMain.LeftSurface = "SmoothNoOutlines"
  168. HairMain.FrontSurface = "SmoothNoOutlines"
  169. HairMain.BackSurface = "SmoothNoOutlines"
  170. HairMain.Anchored = false
  171. HairMain.CanCollide = false
  172. HairMain.Shape = "Block"
  173. local HairMesh1 = Instance.new("SpecialMesh", HairMain)
  174. HairMesh1.MeshId = "rbxassetid://28170426"
  175. HairMesh1.MeshType = Enum.MeshType.FileMesh
  176. HairMesh1.TextureId = "rbxassetid://92823672"
  177. HairMesh1.Scale = Vector3.new(1, 1, 1)
  178. local Band6Weld = Instance.new("Weld", HairMain)
  179. Band6Weld.Part0 = Head
  180. Band6Weld.Part1 = HairMain
  181. Band6Weld.C0 = CFrame.new(0,1.2,0)
  182. ----------------------------------------
  183. SurfaceLight1 = Instance.new("SurfaceLight")
  184. ParticleEmitter0 = Instance.new("ParticleEmitter")
  185. ParticleEmitter1 = Instance.new("ParticleEmitter")
  186. ParticleEmitter0.Name = "Flame"
  187. ParticleEmitter0.Parent = HairMain
  188. ParticleEmitter0.Transparency = NumberSequence.new(1,0.5,0.25,0.25,0.5,1)
  189. ParticleEmitter0.Rotation = NumberRange.new(-180, 180)
  190. ParticleEmitter0.Size = NumberSequence.new(1.5,0.56249976158142)
  191. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0, 255, 0),Color3.new(0, 255, 0))
  192. ParticleEmitter0.LightEmission = 0.75
  193. ParticleEmitter0.Texture = "http://www.roblox.com/asset/?id=283011882"
  194. ParticleEmitter0.Acceleration = Vector3.new(0, 2.5, 0)
  195. ParticleEmitter0.Lifetime = NumberRange.new(.5)
  196. ParticleEmitter0.Rate = 100
  197. ParticleEmitter0.RotSpeed = NumberRange.new(-200, 200)
  198. ParticleEmitter0.Speed = NumberRange.new(2, 2)
  199. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0, 255, 0),Color3.new(0, 255, 0))
  200. ParticleEmitter1.Name = "Sparks"
  201. ParticleEmitter1.Parent = HairMain
  202. ParticleEmitter1.Transparency = NumberSequence.new(1,0,0,1)
  203. ParticleEmitter1.Rotation = NumberRange.new(-180, 180)
  204. ParticleEmitter1.Size = NumberSequence.new(0,0.075000002980232,0.025000000372529)
  205. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0, 255, 0),Color3.new(0, 255, 0))
  206. ParticleEmitter1.LightEmission = 0.5
  207. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=283011882"
  208. ParticleEmitter1.Acceleration = Vector3.new(0, 2.5, 0)
  209. ParticleEmitter1.Lifetime = NumberRange.new(1)
  210. ParticleEmitter1.Rate = 50
  211. ParticleEmitter1.Speed = NumberRange.new(2, 3)
  212. ParticleEmitter1.VelocitySpread = 22.5
  213. ParticleEmitter1.Color = ColorSequence.new(Color3.new(1, 0.72549, 0.482353),Color3.new(1, 0.72549, 0.482353))
  214. SurfaceLight1.Parent = HairMain
  215. SurfaceLight1.Color = Color3.new(1, 0.639216, 0.227451)
  216. SurfaceLight1.Angle = 135
  217. SurfaceLight1.Face = Enum.NormalId.Top
  218. SurfaceLight1.Color = Color3.new(1, 0.639216, 0.227451)
  219.  
  220. function chatfunc(text)
  221. spawn(function()
  222.     local rs=game:service'RunService'.RenderStepped
  223.     local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  224.     local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
  225.     local s=Instance.new("Sound",Character)s.SoundId="rbxassetid://148636768"s.Volume=3
  226.     if Character:FindFirstChild("cht")then Character.cht:Destroy()end
  227.     local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffset=Vector3.new(0,4.5,0)b.Name="cht"
  228.     local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
  229.     local texts={}
  230.     for i=1,snum do
  231.         texts[i]=Instance.new("TextLabel",b)
  232.         texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
  233.         texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(255, 176, 0)
  234.         texts[i].TextStrokeTransparency=1 texts[i].Font="SourceSansLight"texts[i].TextScaled=1 texts[i].TextTransparency=1
  235.     end
  236.     for i=1,#texts do
  237.         if texts[i].Parent then
  238.             texts[i].TextTransparency=0 texts[i].Rotation=math.random(-10,30)texts[i].TextStrokeTransparency=.6
  239.         end
  240.         if texts[i].Text~=" "then s:Play()end
  241.         sw(3)
  242.     end
  243.     sw(60)
  244.     for i=1,#texts do
  245.         if texts[i].Parent then texts[i].Text="~"texts[i].Rotation=math.random(-30,30) end
  246.     end
  247.     s.Volume=5 s.SoundId="rbxassetid://593142105"s:Play()s.Ended:connect(function()s:Destroy()b:Destroy()end)
  248.     game:service'Debris':AddItem(b,5)
  249. end)
  250. end
  251. Player.Chatted:connect(function(msg)chatfunc(game:service("Chat"):FilterStringAsync(msg,Player,Player))
  252. end)
  253. local function Create(ty)
  254.     return function(data)
  255.         local obj = Instance.new(ty)
  256.         for k, v in pairs(data) do
  257.             if type(k) == 'number' then
  258.                 v.Parent = obj
  259.             else
  260.                 obj[k] = v
  261.             end
  262.         end
  263.         return obj
  264.     end
  265. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement