Advertisement
Oscar55555

Untitled

Feb 18th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.92 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. -- RBX.Lua LocalScript | Hackerman | xDarkScripter
  153.  
  154.  
  155. local Players = game:GetService("Players")
  156. local UserInputService = game:GetService("UserInputService")
  157. local RunService = game:GetService("RunService")
  158.  
  159. local Player = Players.LocalPlayer
  160. local Camera = workspace.CurrentCamera
  161. local Mouse = Player:GetMouse()
  162.  
  163. local Character = Player.Character
  164. local Torso = Character.Torso
  165.  
  166. local Typing = false
  167. local TypingSub = 1
  168. local TypingSub2 = 1
  169.  
  170. local Neck = Torso.Neck
  171.  
  172. Neck.C1 = CFrame.new(0, -0.5, 0)
  173.  
  174. local RightArm = Character["Right Arm"]
  175. local LeftArm = Character["Left Arm"]
  176.  
  177. local RightShoulder = Instance.new("Weld", Torso)
  178. RightShoulder.Part0 = Torso
  179. RightShoulder.Part1 = RightArm
  180.  
  181. local LeftShoulder = Instance.new("Weld", Torso)
  182. LeftShoulder.Part0 = Torso
  183. LeftShoulder.Part1 = LeftArm
  184.  
  185. RightShoulder.C1 = CFrame.new(-0.5, 0.5, 0)
  186. LeftShoulder.C1 = CFrame.new(0.5, 0.5, 0)
  187.  
  188.  
  189. local Code = [[
  190. error-261 resolved0
  191. error-340903-3455-34-5-749353230935-3095-234-9102-33-34-3-2349-02394-02934-0-2
  192. error-934-03---04966-049-5060-609-4-604-60945-9604--09-60459-045-694-43
  193. error--5-96-450---45096-4056-09-04-596-049-0956-094-0956-049-59-096-49-564-5-4506-9-045-69-094-69-04
  194. error-606904-596-00-45-69-05-96090-54-6904956094596-0495-0-9-049-49-095-96096-49
  195. error-324--9053-95-09-09-6-94056-3094-2934-092-209-409-34490-2
  196. error--4305--0906-59-0694-5064-95-394-034-93-4955-05496-239-2309-069-40965-34923043-39
  197. error-055-330904-023904-02934-09429034-09-09-29-3049-23094-0293-9-4092-3094-20934-02
  198. error-350-395-09-595-0394-509-34095-09-0304590-09-395-485-405-35093-45093495-039405
  199. error--59034-50-3095-039-09-5903-495-039-509-03094-5093-4059-03945-904-3095-3590-
  200. error-3-09-3950-39-50394-59-3409-093-09-095-0349-509359-3095-0395-093-4095-03945-0934-5
  201. error--350-0-04569-096-6409-694-06-409-0496-049-69-49-6904-9506-49069-495-6
  202. end
  203.  
  204.  
  205.  
  206.  
  207. ]]
  208.  
  209.  
  210. local Argument = [[
  211. -Enagaging Aero Power-dislocating hacks-error:3366-revamping error.Value.Deleted
  212. error-kill:PenguinFred-False-Shutdown-True-error
  213. error=3990-390-030-80-359-305934----3485-34503-409-0964-5049-345
  214. error--456-459640---95-96--96-5456-045-090-4095-05946-
  215. error-5-64560460985645640689-46-45-6-4305-34509-359-039-4905-093-409-09-509-340
  216. localscript=true-4-54-5-3345--3405934-5-03945-09-09-394-509
  217. error-34-3-45-3-93-09-50-340-30459-95-03495---3495-039049-3-59-359-0395-
  218. fixed-true-error-4309584-684-9-6-495-0-9-0496-099-6049-609-4-96-49-
  219. error-340903-3455-34-5-749353230935-3095-234-9102-33-34-3-2349-02394-02934-0-2
  220. error-934-03---04966-049-5060-609-4-604-60945-9604--09-60459-045-694-43
  221. error--5-96-450---45096-4056-09-04-596-049-0956-094-0956-049-59-096-49-564-5-4506-9-045-69-094-69-04
  222. error-606904-596-00-45-69-05-96090-54-6904956094596-0495-0-9-049-49-095-96096-49
  223. error-324--9053-95-09-09-6-94056-3094-2934-092-209-409-34490-2
  224. error--4305--0906-59-0694-5064-95-394-034-93-4955-05496-239-2309-069-40965-34923043-39
  225. error-055-330904-023904-02934-09429034-09-09-29-3049-23094-0293-9-4092-3094-20934-02
  226. error-350-395-09-595-0394-509-34095-09-0304590-09-395-485-405-35093-45093495-039405
  227. error--59034-50-3095-039-09-5903-495-039-509-03094-5093-4059-03945-904-3095-3590-
  228. error-3-09-3950-39-50394-59-3409-093-09-095-0349-509359-3095-0395-093-4095-03945-0934-5
  229. error--350-0-04569-096-6409-694-06-409-0496-049-69-49-6904-9506-49069-495-6
  230. ]]
  231.  
  232.  
  233.  
  234. game.Lighting.GlobalShadows = false
  235. game.Lighting.Brightness = 0.25
  236.  
  237.  
  238. local function Smooth(Part)
  239. Part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  240. Part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  241. Part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  242. Part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  243. Part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  244. Part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  245. end
  246.  
  247.  
  248. local function SetLine(Line, Alpha, Beta)
  249. local dx = Alpha.Position.X.Scale - Beta.Position.X.Scale
  250. local dy = Alpha.Position.Y.Scale - Beta.Position.Y.Scale
  251. local Magnitude = math.sqrt(dx^2 + dy^2)
  252.  
  253. Line.Size = UDim2.new(Magnitude, 0, 0, 8)
  254. Line.Position = Alpha.Position:Lerp(Beta.Position, 0.5)
  255. Line.Rotation = math.deg(math.atan2(dy, dx))
  256. end
  257.  
  258.  
  259. local Keyboard = Instance.new("Part")
  260. Keyboard.BrickColor = BrickColor.new("Really black")
  261. Keyboard.Material = Enum.Material.Neon
  262. Keyboard.Transparency = 0.1
  263. Keyboard.Size = Vector3.new(5, 0, 2)
  264. Keyboard.CanCollide = false
  265. Keyboard.Locked = true
  266.  
  267. Smooth(Keyboard)
  268.  
  269. local KeyboardWeld = Instance.new("Weld")
  270. KeyboardWeld.Part0 = Torso
  271. KeyboardWeld.Part1 = Keyboard
  272. KeyboardWeld.C0 = CFrame.new(0, 0.2, -2) * CFrame.Angles(0.3, 0, 0)
  273.  
  274. KeyboardWeld.Parent = Keyboard
  275. Keyboard.Parent = Character
  276.  
  277.  
  278. local Light = Instance.new("PointLight")
  279. Light.Brightness = 1.5
  280. Light.Range = 12
  281. Light.Parent = Keyboard
  282.  
  283.  
  284. local Screen = Instance.new("Part")
  285. Screen.BrickColor = BrickColor.new("Really black")
  286. Screen.Material = Enum.Material.Neon
  287. Screen.Transparency = 0.3
  288. Screen.Size = Vector3.new(6, 4, 0)
  289. Screen.CanCollide = false
  290. Screen.Locked = true
  291.  
  292. Smooth(Screen)
  293.  
  294. local ScreenWeld = Instance.new("Weld")
  295. ScreenWeld.Part0 = Torso
  296. ScreenWeld.Part1 = Screen
  297. ScreenWeld.C0 = CFrame.new(0, 3.5, -4.5) * CFrame.Angles(0.1, 0, 0)
  298.  
  299. local Gui = Instance.new("SurfaceGui")
  300. Gui.Face = "Back"
  301. Gui.Adornee = Screen
  302. Gui.Parent = Screen
  303.  
  304. local Text = Instance.new("TextBox")
  305. Text.BackgroundTransparency = 1
  306. Text.Position = UDim2.new(0, 0, 0, 0)
  307. Text.Size = UDim2.new(1, 0, 1, 0)
  308. Text.TextColor3 = Color3.new(1, 1, 1)
  309. Text.Font = Enum.Font.Code
  310. Text.Active = false
  311. Text.MultiLine = true
  312. Text.TextWrapped = true
  313. Text.FontSize = Enum.FontSize.Size32
  314. Text.TextXAlignment = Enum.TextXAlignment.Left
  315. Text.TextYAlignment = Enum.TextYAlignment.Top
  316. Text.Text = ""
  317.  
  318. Text.Parent = Gui
  319.  
  320. ScreenWeld.Parent = Screen
  321. Screen.Parent = Character
  322.  
  323.  
  324.  
  325. local Screen2 = Instance.new("Part")
  326. Screen2.BrickColor = BrickColor.new("Really black")
  327. Screen2.Material = Enum.Material.Neon
  328. Screen2.Transparency = 0.3
  329. Screen2.Size = Vector3.new(6, 4, 0)
  330. Screen2.CanCollide = false
  331. Screen2.Locked = true
  332.  
  333. Smooth(Screen2)
  334.  
  335. local Screen2Weld = Instance.new("Weld")
  336. Screen2Weld.Part0 = Torso
  337. Screen2Weld.Part1 = Screen2
  338. Screen2Weld.C0 = CFrame.new(5.4, 3.4, -1.5) * CFrame.Angles(0.1, -0.9, 0)
  339.  
  340. local Gui2 = Instance.new("SurfaceGui")
  341. Gui2.Face = "Back"
  342. Gui2.Adornee = Screen2
  343. Gui2.Parent = Screen2
  344.  
  345. local Text2 = Instance.new("TextBox")
  346. Text2.BackgroundTransparency = 1
  347. Text2.Position = UDim2.new(0, 0, 0, 0)
  348. Text2.Size = UDim2.new(1, 0, 1, 0)
  349. Text2.TextColor3 = Color3.new(0, 1, 0)
  350. Text2.Font = Enum.Font.Code
  351. Text2.Active = false
  352. Text2.MultiLine = true
  353. Text2.TextWrapped = true
  354. Text2.FontSize = Enum.FontSize.Size32
  355. Text2.TextXAlignment = Enum.TextXAlignment.Left
  356. Text2.TextYAlignment = Enum.TextYAlignment.Top
  357. Text2.Text = ""
  358.  
  359. Text2.Parent = Gui2
  360.  
  361. local ImageKey = Instance.new("ImageLabel")
  362. ImageKey.BackgroundTransparency = 1
  363. ImageKey.Size = UDim2.new(0.2, 0, 0.2, 0)
  364. ImageKey.Position = UDim2.new(0.4, 0, 0.4, 0)
  365. ImageKey.Image = "http://www.roblox.com/asset/?id=697224414"
  366. ImageKey.ImageTransparency = 1
  367. ImageKey.Parent = Gui2
  368.  
  369. Screen2Weld.Parent = Screen2
  370. Screen2.Parent = Character
  371.  
  372.  
  373.  
  374. local Screen3 = Instance.new("Part")
  375. Screen3.BrickColor = BrickColor.new("Really black")
  376. Screen3.Material = Enum.Material.Neon
  377. Screen3.Transparency = 0.3
  378. Screen3.Size = Vector3.new(6, 4, 0)
  379. Screen3.CanCollide = false
  380. Screen3.Locked = true
  381.  
  382. Smooth(Screen3)
  383.  
  384. local Screen3Weld = Instance.new("Weld")
  385. Screen3Weld.Part0 = Torso
  386. Screen3Weld.Part1 = Screen3
  387. Screen3Weld.C0 = CFrame.new(-5.4, 3.4, -1.5) * CFrame.Angles(0.1, 0.9, 0)
  388.  
  389. local Gui3 = Instance.new("SurfaceGui")
  390. Gui3.Face = "Back"
  391. Gui3.Adornee = Screen3
  392. Gui3.Parent = Screen3
  393.  
  394. local Map = Instance.new("ImageLabel")
  395. Map.BackgroundTransparency = 1
  396. Map.Position = UDim2.new(0, 0, 0, 0)
  397. Map.Size = UDim2.new(1, 0, 1, 0)
  398. Map.Image = "http://www.roblox.com/asset/?id=121661614"
  399.  
  400. Map.Parent = Gui3
  401.  
  402. Screen3Weld.Parent = Screen3
  403. Screen3.Parent = Character
  404.  
  405. local Points = {}
  406. local Lines = {}
  407.  
  408. for i = 1, 10 do
  409. if i > 1 then
  410. local Line = Instance.new("Frame")
  411. Line.BorderSizePixel = 0
  412. Line.BackgroundColor3 = Color3.new(0.8, 0, 0)
  413. Line.AnchorPoint = Vector2.new(0.5, 0.5)
  414. Line.Parent = Gui3
  415.  
  416. Lines[i] = Line
  417. end
  418.  
  419. local Point = Instance.new("Frame")
  420. Point.BorderSizePixel = 0
  421. Point.BackgroundColor3 = Color3.new(1, 0, 0)
  422. Point.Size = UDim2.new(0, 40, 0, 40)
  423. Point.Position = UDim2.new(math.random(), 0, math.random(), 0)
  424. Point.AnchorPoint = Vector2.new(0.5, 0.5)
  425. Point.Parent = Gui3
  426.  
  427. Points[i] = {Point = Point, Position = Point.Position}
  428. end
  429.  
  430.  
  431.  
  432.  
  433. UserInputService.InputBegan:Connect(function(Input, Processed)
  434. if Processed then return end
  435.  
  436. if Input.UserInputType == Enum.UserInputType.Keyboard then
  437. local KeyCode = Input.KeyCode
  438.  
  439. if KeyCode == Enum.KeyCode.E then
  440. Typing = not Typing
  441. end
  442. end
  443. end)
  444.  
  445.  
  446.  
  447. RunService.Heartbeat:Connect(function()
  448. local Sine = math.sin(tick() * 8) / 8
  449.  
  450. for Key, Value in next, Points do
  451. Value.Point.Size = UDim2.new(0, 25 + Sine * 40, 0, 25 + Sine * 40)
  452. Value.Point.Position = Value.Point.Position:Lerp(Value.Position, 0.1)
  453.  
  454. if Key > 1 then
  455. SetLine(Lines[Key], Value.Point, Points[1].Point)
  456. end
  457. end
  458.  
  459. if math.random(100) == 1 then
  460. for _, Value in next, Points do
  461. Value.Position = UDim2.new(math.random(), 0, math.random(), 0)
  462. end
  463. end
  464.  
  465. ImageKey.ImageTransparency = math.abs(math.sin(tick()))
  466.  
  467. if Typing then
  468. if math.random(5) == 1 then
  469. local PressSound = Instance.new("Sound")
  470. PressSound.SoundId = "rbxassetid://265970978"
  471. PressSound.Pitch = 0.5 + math.random() / 5
  472. PressSound.Volume = 3
  473. PressSound.Parent = Keyboard
  474. PressSound:Play()
  475.  
  476. game:GetService("Debris"):AddItem(PressSound, 1 / 2)
  477. end
  478.  
  479. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(-0.2 + Sine / 4, (math.random() - 0.5) / 2, 0)
  480.  
  481. RightShoulder.C0 = CFrame.new(1, 0.6 + math.random() / 4, -math.random() * 0.7)
  482. * CFrame.Angles(1.5 + Sine * math.random(), -Sine / 4, -(0.5 + 2 * Sine * math.random()))
  483.  
  484. LeftShoulder.C0 = CFrame.new(-1, 0.6 + math.random() / 4, -math.random() * 0.7)
  485. * CFrame.Angles(1.5 - Sine * math.random(), Sine / 4, 0.5 + 2 * Sine * math.random())
  486.  
  487. if math.random(2) == 1 then
  488. if TypingSub < #Argument then
  489. TypingSub = TypingSub + 1
  490. Text.Text = Text.Text..Argument:sub(TypingSub, TypingSub)
  491.  
  492. local nl = Text.Text:find("\n")
  493.  
  494. if nl and #Text.Text > 400 then
  495. Text.Text = Text.Text:sub(nl + 1)
  496. end
  497.  
  498. else
  499. TypingSub = 1
  500. end
  501. end
  502.  
  503. if math.random(3) == 1 then
  504. if TypingSub2 < #Code then
  505. TypingSub2 = TypingSub2 + 1
  506. Text2.Text = Text2.Text..Code:sub(TypingSub2, TypingSub2)
  507.  
  508. local nl = Text2.Text:find("\n")
  509.  
  510. if nl and #Text2.Text > 400 then
  511. Text2.Text = Text2.Text:sub(nl + 1)
  512. end
  513.  
  514. else
  515. TypingSub2 = 1
  516. end
  517. end
  518.  
  519. else
  520. Neck.C0 = CFrame.new(0, 1, 0)
  521.  
  522. RightShoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(1.5, 0, 0)
  523. LeftShoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(1.5, 0, 0)
  524. end
  525. end)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551. plr = game.Players.LocalPlayer
  552. mouse = plr:GetMouse()
  553. part = nil
  554. bp = nil
  555. particles = nil
  556. function clerp(a,b,c,d)
  557. for i = 0,d,.01 do
  558. a.CFrame = CFrame.new(b:lerp(c,i))
  559. wait()
  560. end
  561. end
  562. function slerp(a2,b2,c2,d2)
  563. for i2 = 0,d2,.01 do
  564. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  565. wait()
  566. end
  567. end
  568. mouse.KeyDown:connect(function(key)
  569. if key == "e" and plr.Character.Parent == workspace then
  570. plr.Character.Parent = workspace.Camera
  571. plr.Character.Archivable = true
  572. Instance.new("ForceField",plr.Character).Visible = false
  573. for y,t in pairs(plr.Character:GetChildren()) do
  574. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  575. t.Transparency = 1
  576. if t.Name == "Head" and t:FindFirstChild("face") then
  577. t.face.Transparency = 1
  578. end
  579. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  580. t.Handle.Transparency = 1
  581. end
  582. end
  583. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  584. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  585. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  586. if plr.Character.Torso.Anchored == true then
  587. for y,t in pairs(plr.Character:GetChildren()) do
  588. if t:IsA("Part") then
  589. t.Anchored = false
  590. end
  591. end
  592. else
  593. for y,t in pairs(plr.Character:GetChildren()) do
  594. if t:IsA("Part") then
  595. t.Anchored = true
  596. end
  597. end
  598. end
  599. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  600. local clone = part:Clone()
  601. clone.Parent = workspace
  602. clone.Anchored = false
  603. clone:ClearAllChildren()
  604. clone.CanCollide = true
  605. bp.Parent = clone
  606. particles.Parent = clone
  607. if part.Parent:FindFirstChildOfClass("Humanoid") then
  608. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  609. end
  610. part:Destroy()
  611. part = clone
  612. elseif key == "q" and plr.Character.Parent == workspace.Camera and part == nil then
  613. plr.Character.Parent = workspace
  614. plr.Character.Archivable = false
  615. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  616. for y,t in pairs(plr.Character:GetChildren()) do
  617. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  618. t.Transparency = 0
  619. if t.Name == "Head" and t:FindFirstChild("face") then
  620. t.face.Transparency = 0
  621. end
  622. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  623. t.Handle.Transparency = 0
  624. end
  625. end
  626. end
  627. end)
  628. mouse.Button1Down:connect(function()
  629. if plr.Character.Parent == workspace.Camera then
  630. if mouse ~= nil then
  631. if mouse.Target ~= nil then
  632. part = mouse.Target
  633. bp = Instance.new("BodyPosition",part)
  634. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  635. bp.Position = part.Position
  636. particles = Instance.new("ParticleEmitter",part)
  637. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  638. particles.Size = NumberSequence.new(1)
  639. particles.Texture = "rbxassetid://292289455"
  640. particles.VelocitySpread = 360
  641. particles.Speed = NumberRange.new(0)
  642. particles.RotSpeed = NumberRange.new(0)
  643. particles.Rotation = NumberRange.new(0)
  644. particles.Rate = 250
  645. particles.Lifetime = NumberRange.new(.2,.4)
  646. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  647. dwn = true
  648. end
  649. end
  650. while dwn == true do
  651. wait()
  652. bp.Position = mouse.hit.p
  653. if part then
  654. if part.Parent:FindFirstChildOfClass("Humanoid") then
  655. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  656. end
  657. end
  658. end
  659. end
  660. end)
  661. mouse.Button1Up:connect(function()
  662. dwn = false
  663. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  664. if bp then bp:Destroy() end
  665. if particles then particles:Destroy() end
  666. end)
  667. base = Instance.new("ScreenGui",plr.PlayerGui)
  668. bbg = Instance.new("BillboardGui",plr.Character.Head)
  669. bbg.Size = UDim2.new(0,200,0,50)
  670. bbg.StudsOffset = Vector3.new(0,3,0)
  671. bbgTl = Instance.new("TextLabel",bbg)
  672. bbgTl.BackgroundTransparency = 1
  673. bbgTl.Size = UDim2.new(10,0,1,0)
  674. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  675. bbgTl.Font = "Code"
  676. bbgTl.Text = " "
  677. bbgTl.TextSize = 25
  678. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  679. bbgTl.TextColor3 = Color3.new(0,0,0)
  680. bbgTl.TextStrokeTransparency = 0
  681. bbgTl.TextWrapped = true
  682. plr.Chatted:connect(function(msg)
  683. bbgTl.Text = msg
  684. wait(5)
  685. if bbgTl.Text == msg then
  686. bbgTl.Text = " "
  687. end
  688. end)
  689. touchCounter = 0
  690. while wait() do
  691. if plr.Character.Parent == workspace.Camera then
  692. local c = plr.Character:Clone()
  693. c:MakeJoints()
  694. for y,t in pairs(c:GetChildren()) do
  695. if t:IsA("Part") then
  696. t.CanCollide = false
  697. t.Anchored = true
  698. t.Transparency = .5
  699. t.TopSurface = "Smooth"
  700. t.BottomSurface = "Smooth"
  701. t.RightSurface = "Smooth"
  702. t.LeftSurface = "Smooth"
  703. t.FrontSurface = "Smooth"
  704. t.BackSurface = "Smooth"
  705. t.BrickColor = BrickColor.new("Really black")
  706. if t.Name == "Head" and t:FindFirstChild("face") then
  707. t.face:Remove()
  708. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  709. t.roblox:Remove()
  710. elseif t.Name == "HumanoidRootPart" then
  711. t:Remove()
  712. end
  713. else
  714. t:Remove()
  715. end
  716. end
  717. c.Parent = workspace
  718. game.Debris:AddItem(c,.05)
  719. end
  720. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement