Advertisement
Silver_cole

Untitled

Jul 4th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.08 KB | None | 0 0
  1. -- 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
  2. wait(1)
  3.  
  4. local p = game:GetService("Players")
  5.  
  6. pp = silver22352
  7.  
  8. local ChatService = game:GetService("Chat")
  9.  
  10.  
  11.  
  12. local skidspace = game:GetService("Workspace") --This is a script intended for script builder
  13.  
  14. plr = skidspace[pp.Name] --You have to deal with all this idiots; Just like school.
  15.  
  16. local hum = plr:FindFirstChildOfClass("Humanoid")
  17.  
  18. hum.WalkSpeed = 11.5*6
  19.  
  20. hum.DisplayDistanceType = "None"
  21.  
  22. function ChatFunction(loc, msg)
  23.  
  24.     local ChatGuiPart1 = Instance.new("BillboardGui",loc)
  25.  
  26.     ChatGuiPart1.Name = "ChatGui"
  27.  
  28.     ChatGuiPart1.AlwaysOnTop = true
  29.  
  30.     ChatGuiPart1.ExtentsOffset = Vector3.new(0, 5, 0)
  31.  
  32.     ChatGuiPart1.Size = UDim2.new(0, 200, 0, 50)
  33.  
  34.     local ChatGuiPart2 = Instance.new("TextLabel")
  35.  
  36.     ChatGuiPart2.BorderColor3 = Color3.new(1, 0, 0)
  37.  
  38.     ChatGuiPart2.BorderSizePixel = 3
  39.  
  40.     ChatGuiPart2.BackgroundColor3 = Color3.new(255, 255, 255)
  41.  
  42.     ChatGuiPart2.Size = UDim2.new(0, 200, 0, 50)
  43.  
  44.     ChatGuiPart2.Font = Enum.Font.Arcade
  45.  
  46.     ChatGuiPart2.FontSize = Enum.FontSize.Size14
  47.  
  48.     ChatGuiPart2.TextColor3 = Color3.new(1, 0, 0)
  49.  
  50.     ChatGuiPart2.TextWrapped = true
  51.  
  52.     ChatGuiPart2.Parent = ChatGuiPart1
  53.  
  54.     ChatGuiPart2.Text = msg
  55.  
  56.     wait()
  57.  
  58.     --ChatGuiPart1:Destroy()
  59.  
  60. end
  61.  
  62.  
  63.  
  64. --------------------------------------------------
  65.  
  66. --186942568
  67.  
  68. local theme = Instance.new("Sound",pp.Character)
  69.  
  70. theme.Name = "Girei"
  71.  
  72. theme.SoundId = "rbxassetid://324905722"
  73.  
  74. theme.Volume = 3
  75.  
  76. theme.Looped = true
  77.  
  78. theme:Play()
  79.  
  80.  
  81.  
  82. --------------------------------------------------
  83.  
  84.  
  85.  
  86. for _,v in pairs(plr:GetChildren()) do
  87.  
  88.     if v:IsA("Accessory") or v:IsA("Hat") or v:IsA("Shirt") or v:IsA("Pants") or v:IsA("CharacterMesh") then
  89.  
  90.         v:Destroy()
  91.  
  92.     end
  93.  
  94. end
  95.  
  96.  
  97.  
  98. bc = plr["Body Colors"]
  99.  
  100. black = BrickColor.new("Really black")
  101.  
  102. bc.LeftArmColor = black
  103.  
  104. bc.LeftLegColor = black
  105.  
  106. bc.RightArmColor = black
  107.  
  108. bc.RightLegColor = black
  109.  
  110. bc.TorsoColor = black
  111.  
  112. bc.HeadColor = black
  113.  
  114.  
  115.  
  116. sbt = Instance.new("SelectionBox",plr.Torso)
  117.  
  118. sbt.Adornee = sbt.Parent
  119.  
  120. sbt.LineThickness = 0.01
  121.  
  122. sbra = Instance.new("SelectionBox",plr["Right Arm"])
  123.  
  124. sbra.Adornee = sbra.Parent
  125.  
  126. sbra.LineThickness = 0.01
  127.  
  128. sbla = Instance.new("SelectionBox",plr["Left Arm"])
  129.  
  130. sbla.Adornee = sbla.Parent
  131.  
  132. sbla.LineThickness = 0.01
  133.  
  134. sbrl = Instance.new("SelectionBox",plr["Right Leg"])
  135.  
  136. sbrl.Adornee = sbrl.Parent
  137.  
  138. sbrl.LineThickness = 0.01
  139.  
  140. sbll = Instance.new("SelectionBox",plr["Left Leg"])
  141.  
  142. sbll.Adornee = sbll.Parent
  143.  
  144. sbll.LineThickness = 0.01
  145.  
  146. --sbh = Instance.new("SelectionBox",plr.Head)
  147.  
  148. --sbh.Adornee = sbh.Parent
  149.  
  150.  
  151.  
  152.  
  153.  
  154. sbt.Color3 = Color3.new(math.random(), math.random(), math.random())
  155.  
  156. sbra.Color3 = Color3.new(math.random(), math.random(), math.random())
  157.  
  158. sbla.Color3 = Color3.new(math.random(), math.random(), math.random())
  159.  
  160. sbrl.Color3 = Color3.new(math.random(), math.random(), math.random())
  161.  
  162. sbll.Color3 = Color3.new(math.random(), math.random(), math.random())
  163.  
  164. --sbh.Color3 = Color3.new(math.random(), math.random(), math.random())
  165.  
  166.     local Title1 = Instance.new("BillboardGui",plr.Head)
  167.  
  168.     Title1.Adornee = plr.Head
  169.  
  170.     Title1.AlwaysOnTop = true
  171.  
  172.     Title1.Size = UDim2.new(0, 200, 0, 50)
  173.  
  174.     local Title2 = Instance.new("TextLabel")
  175.  
  176.     Title2.BackgroundTransparency = 1
  177.  
  178.     Title2.Position = UDim2.new(0, 0, -0.899999976, 0)
  179.  
  180.     Title2.Size = UDim2.new(0, 200, 0, 50)
  181.  
  182.     Title2.Font = Enum.Font.Arcade
  183.  
  184.     Title2.FontSize = Enum.FontSize.Size24
  185.  
  186.     Title2.Text = "Demon of Insanity"
  187.  
  188.     Title2.TextColor3 = Color3.new(1, 0, 0)
  189.  
  190.     Title2.TextScaled = true
  191.  
  192.     Title2.TextWrapped = true
  193.  
  194.     Title2.Parent = Title1
  195.  
  196.  
  197.  
  198. --Commented neatness stops here, along with all other forms of organization.
  199.  
  200.  
  201.  
  202. for i = 1,50 do
  203.  
  204.     wait(0.0005)
  205.  
  206.     game:GetService("Lighting").Brightness = game:GetService("Lighting").Brightness - 0.2
  207.  
  208. end
  209.  
  210.     ChatFunction(pp.Character.Head, "The Demon of Insanity has arrived, this world is now mine.")
  211.  
  212.     wait(3)
  213.  
  214.     pp.Character.Head.ChatGui:Destroy()
  215.  
  216.     --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "My incarnation is complete. The Demon of Insanity is here.","Red")
  217.  
  218. game:GetService("Lighting").Brightness = 0
  219.  
  220.  
  221.  
  222. function md()
  223.  
  224.     ChatFunction(pp.Character.Head, "This world shall be rid of all sanity!")  
  225.  
  226.     --game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character, "This world shall be rid of all sanity!","Red")
  227.  
  228.     game:GetService("Lighting").Ambient = Color3.new(255/255, 0/255, 0,255)
  229.  
  230.     game:GetService("Lighting").TimeOfDay = 24000004
  231.  
  232. local destruction = Instance.new("Part")
  233.  
  234. destruction.Touched:connect(function(hit)
  235.  
  236.     if hit.Parent:FindFirstChildOfClass("Humanoid") then
  237.  
  238.         if hit.Parent.Name == pp.Name or hit.Parent.Parent.Name == pp.Name then
  239.  
  240.         else
  241.  
  242.         hit.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  243.  
  244. end
  245.  
  246.     end
  247.  
  248. end)
  249.  
  250. destruction.Parent = plr
  251.  
  252. destruction.Material = Enum.Material.Ice
  253.  
  254. destruction.BrickColor = BrickColor.new("Maroon")
  255.  
  256. destruction.Transparency = 0.25
  257.  
  258. destruction.CFrame = plr["Right Arm"].CFrame
  259.  
  260. destruction.Shape = Enum.PartType.Ball
  261.  
  262. destruction.Size = Vector3.new(4, 4, 4)
  263.  
  264. destruction.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  265.  
  266. destruction.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  267.  
  268. destruction.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  269.  
  270. destruction.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  271.  
  272. destruction.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  273.  
  274. destruction.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  275.  
  276. destruction.CanCollide = false
  277.  
  278. destruction.Color = Color3.new(0.458824, 0, 0)
  279.  
  280. local bp = Instance.new("BodyPosition",destruction)
  281.  
  282. bp.MaxForce = Vector3.new(10000, 10000, 10000)
  283.  
  284. position = mouse.Hit
  285.  
  286. bp.Position = mouse.Hit.p
  287.  
  288. wait(2.5)
  289.  
  290. destruction.Anchored = true
  291.  
  292. local boom = Instance.new("Sound",pp.Character)
  293.  
  294. boom.SoundId = "rbxassetid://144699494"
  295.  
  296. boom.Pitch = 0.45
  297.  
  298. boom:Play()
  299.  
  300. boom.Volume = 10
  301.  
  302. for i = 1,75 do
  303.  
  304.     wait(0.00005)
  305.  
  306. destruction.CFrame = position
  307.  
  308. destruction.Size = Vector3.new(4, 4, 4) * i*0.75
  309.  
  310. destruction.CFrame = position
  311.  
  312. destruction.Transparency = 0.25 * (i/18)
  313.  
  314. end
  315.  
  316.     pp.Character.Head.ChatGui:Destroy()
  317.  
  318. destruction:Destroy()
  319.  
  320. end
  321.  
  322.  
  323.  
  324.  
  325.  
  326. mouse.KeyDown:connect(function(key)
  327.  
  328.     if key == "q" then
  329.  
  330.         md()
  331.  
  332.     end
  333.  
  334. end)
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342. local player = silver22352
  343.  
  344. local pchar = player.Character
  345.  
  346. local cam = workspace.CurrentCamera
  347.  
  348. root = plr.HumanoidRootPart
  349.  
  350.  
  351.  
  352. local rad = math.rad
  353.  
  354. bodyparts = {}
  355.  
  356. local keysDown = {}
  357.  
  358. local flySpeed = 0
  359.  
  360. local MAX_FLY_SPEED = 150
  361.  
  362.  
  363.  
  364. local canFly = false
  365.  
  366. local flyToggled = false
  367.  
  368.  
  369.  
  370. local forward, side = 0, 0
  371.  
  372. local lastForward, lastSide = 0, 0
  373.  
  374.  
  375.  
  376. local floatBP = Instance.new("BodyPosition")
  377.  
  378. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  379.  
  380. local flyBV = Instance.new("BodyVelocity")
  381.  
  382. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  383.  
  384. local turnBG = Instance.new("BodyGyro")
  385.  
  386. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  387.  
  388.  
  389.  
  390. mouse.KeyDown:connect(function(key)
  391.  
  392.         keysDown[key] = true
  393.  
  394.  
  395.  
  396.         if key == "f" then
  397.  
  398.                 flyToggled = not flyToggled
  399.  
  400.  
  401.  
  402.         if not flyToggled then
  403.  
  404.                 stanceToggle = "Normal"
  405.  
  406.                 floatBP.Parent = nil
  407.  
  408.                 flyBV.Parent = nil
  409.  
  410.                 turnBG.Parent = nil
  411.  
  412.                 root.Velocity = Vector3.new()
  413.  
  414.                 pchar:FindFirstChildOfClass("Humanoid").PlatformStand = false
  415.  
  416.         end
  417.  
  418. end
  419.  
  420.  
  421.  
  422. end)
  423.  
  424. mouse.KeyUp:connect(function(key)
  425.  
  426.         keysDown[key] = nil
  427.  
  428. end)
  429.  
  430.  
  431.  
  432. local function updateFly()
  433.  
  434.    
  435.  
  436.    
  437.  
  438.    
  439.  
  440.  
  441.  
  442.         if not flyToggled then return end
  443.  
  444.  
  445.  
  446.         lastForward = forward
  447.  
  448.         lastSide = side
  449.  
  450.  
  451.  
  452.         forward = 0
  453.  
  454.         side = 0
  455.  
  456.  
  457.  
  458.         if keysDown.w then
  459.  
  460.                 forward = forward + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement