SHARE
TWEET

Untitled

a guest May 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. local ins =Instance.new
  88. local p=owner
  89. Instance.new("ForceField", owner.Character). Visible = false
  90. local char=p.Character
  91. local torso=char.Torso
  92. local hed=char.Head
  93. local hrp =char.HumanoidRootPart
  94. local larm=char:FindFirstChild("Left Arm")
  95. local rarm=char:FindFirstChild("Right Arm")
  96. local lleg=char:FindFirstChild("Left Leg")
  97. local rleg=char:FindFirstChild("Right Leg")
  98. local hum=char.Humanoid
  99. local hb=game:service("RunService").Heartbeat
  100. local rs=game:service("RunService").Stepped
  101. hum.MaxHealth = 1.0E298
  102. hum.Health = 1.0E298
  103.  
  104.  
  105.  
  106.  
  107.  
  108. TrailSettings = {
  109.     Lifetime = 50,
  110.     Texture = 'rbxassetid://1209757190',
  111.     --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
  112.     Color1 = ColorSequence.new(BrickColor.new('Deep orange').Color,BrickColor.new('Black').Color),
  113.     Color2 = ColorSequence.new(BrickColor.new('Toothpaste').Color,BrickColor.new('Hot pink').Color),
  114.     AllBody = true,
  115.     UpperBodyOnly = false,
  116.     LowerBodyOnly = false,
  117.     Accessories = true,
  118.     Extras = true,
  119.     }
  120. --yay
  121. local ins =Instance.new
  122. Player = owner
  123. PlayerGui = Player.PlayerGui
  124. Cam = workspace.CurrentCamera
  125. Backpack = Player.Backpack
  126. Character = Player.Character
  127. Humanoid = Character.Humanoid
  128. RootPart = Character["HumanoidRootPart"]
  129. Torso = Character["Torso"]
  130. Head = Character["Head"]
  131. RightArm = Character["Right Arm"]
  132. LeftArm = Character["Left Arm"]
  133. RightLeg = Character["Right Leg"]
  134. LeftLeg = Character["Left Leg"]
  135. RootJoint = RootPart["RootJoint"]
  136. Neck = Torso["Neck"]
  137. RightShoulder = Torso["Right Shoulder"]
  138. LeftShoulder = Torso["Left Shoulder"]
  139. RightHip = Torso["Right Hip"]
  140. LeftHip = Torso["Left Hip"]
  141. local pattt =ins('Part',Character)
  142. pattt.BrickColor = BrickColor.new('Maroon')
  143. pattt.Size =Vector3.new(.1,.1,.1)
  144. pattt.Material = 'Neon'
  145. pattt.Name = "Some is"
  146. pattt.Anchored = false
  147. pattt.CanCollide = false
  148. pattt.Transparency =1
  149. local w=ins('Weld',pattt)
  150. w.Part1 = pattt
  151. w.Part0 = Torso
  152. w.C0=CFrame.new(-1,.9,0)
  153.  
  154. local sandd = ins('Part',Character)
  155. sandd.BrickColor = BrickColor.new('New Yeller')
  156. sandd.Material = 'Sand'
  157. sandd.Name = "Fet"
  158. sandd.Size =Vector3.new(.1,.1,.1)
  159. sandd.Anchored = false
  160. sandd.CanCollide = false
  161. sandd.Transparency =1
  162. local w=ins('Weld',sandd)
  163. w.Part1 = sandd
  164. w.Part0 = Torso
  165. w.C0=CFrame.new(1,.9,0)
  166. local at3 =ins('Attachment',pattt)
  167. local at4 =ins('Attachment',sandd)
  168.  
  169. local patt =ins('Part',Character)
  170. patt.BrickColor = BrickColor.new('Maroon')
  171. patt.Size =Vector3.new(.1,.1,.1)
  172. patt.Material = 'Neon'
  173. patt.Name = "Game is"
  174. patt.Anchored = false
  175. patt.CanCollide = false
  176. patt.Transparency =1
  177. local w=ins('Weld',patt)
  178. w.Part1 = patt
  179. w.Part0 = Torso
  180. w.C0=CFrame.new(-1,-.9,0)
  181. local sand = ins('Part',Character)
  182. sand.BrickColor = BrickColor.new('New Yeller')
  183. sand.Material = 'Sand'
  184. sand.Name = "Fet"
  185. sand.Size =Vector3.new(.1,.1,.1)
  186. sand.Anchored = false
  187. sand.CanCollide = false
  188. sand.Transparency =1
  189. local w=ins('Weld',sand)
  190. w.Part1 = sand
  191. w.Part0 = Torso
  192. w.C0=CFrame.new(1,-.9,0)
  193. local at =ins('Attachment',sand)
  194. local at2 =ins('Attachment',patt)
  195. local trail =ins('Trail',Character)
  196. trail.Attachment0 = at
  197. trail.Attachment1 =at2
  198. trail.Transparency = NumberSequence.new(0,1)
  199. trail.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
  200. trail.Lifetime = 50
  201. local trail2 =ins('Trail',Character)
  202. trail2.Attachment0 =at3
  203. trail2.Attachment1 =at4
  204. trail2.Transparency = NumberSequence.new(0,1)
  205. trail2.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
  206. local trail3 =ins('Trail',Character)
  207. trail3.Attachment0=at
  208. trail3.Attachment1=at4
  209. trail3.Transparency = NumberSequence.new(0,1)
  210. trail3.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
  211. local trail4 =ins('Trail',Character)
  212. trail4.Attachment0=at3
  213. trail4.Attachment1=at2
  214. trail4.Transparency = NumberSequence.new(0,1)
  215. trail4.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
  216. local trail6 =ins('Trail',Character)
  217. trail6.Attachment0=at
  218. trail6.Attachment1=at3
  219. trail6.Transparency = NumberSequence.new(0,1)
  220. trail6.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
  221. local trail5 =ins('Trail',Character)
  222. trail5.Attachment0=at4
  223. trail5.Attachment1=at2
  224. trail5.Transparency = NumberSequence.new(0,1)
  225. trail5.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(0.2,Color3.new(1,1,0)),ColorSequenceKeypoint.new(0.4,Color3.new(0,1,0)),ColorSequenceKeypoint.new(0.6,Color3.new(0,1,1)),ColorSequenceKeypoint.new(0.8,Color3.new(0,0,1)),ColorSequenceKeypoint.new(1,Color3.new(0,0,1))})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top