Advertisement
Hugo1234cool

Untitled

Mar 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.74 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
  141. Parts={}
  142. function GetDiscoColor(hue)
  143. local section = hue % 1 * 3
  144. local secondary = 0.5 * math.pi * (section % 1)
  145. if section < 1 then
  146. return Vector3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  147. elseif section < 2 then
  148. return Vector3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  149. else
  150. return Vector3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  151. end
  152. end
  153. Part = function(x,y,z,color,tr,cc,an,parent)
  154. local p = Instance.new('Part',parent or Weapon)
  155. p.formFactor = 'Custom'
  156. p.Size = Vector3.new(x,y,z)
  157. p.BrickColor = BrickColor.new(color)
  158. p.CanCollide = cc
  159. p.Transparency = tr
  160. p.Anchored = an
  161. p.TopSurface,p.BottomSurface = 0,0
  162. p:BreakJoints''
  163. table.insert(Parts,p)
  164. return p
  165. end
  166. Weld = function(p0,p1)
  167. local w = Instance.new('Motor',p0)
  168. w.Part0 = p0
  169. w.Part1 = p1
  170. return w
  171. end
  172. Mesh = function(par,num,x,y,z)
  173. local msh = 0
  174. if num == 1 then
  175. msh = Instance.new("SpecialMesh",par)
  176. msh.MeshId='rbxasset://fonts/torso.mesh'
  177. msh.TextureId='rbxasset://25701026'
  178. end
  179. if num == 2 then
  180. msh = Instance.new("SpecialMesh",par)
  181. msh.MeshId='rbxasset://fonts/head.mesh'
  182. msh.TextureId='rbxassetid://25701026'
  183. end
  184. msh.Scale = Vector3.new(x,y,z)
  185. return msh
  186. end
  187. plr=Game.Players.LocalPlayer
  188. char=plr.Character
  189. for _,v in pairs(char:GetChildren()) do
  190. if v.ClassName=="Part" then
  191. v.Transparency=1
  192. elseif v.ClassName=="Hat" then
  193. v.Handle.Mesh.TextureId='rbxassetid://25701026'
  194. table.insert(Parts,v.Handle)
  195. end
  196. end
  197. t=Part(1,1,1,'',0,false,false,char)
  198. Mesh(t,1,1,1,1)
  199. Weld(char.Torso,t)
  200. a=Part(1,1,1,'',0,false,false,char)
  201. Mesh(a,1,.5,1,1)
  202. Weld(char['Right Arm'],a)
  203. a=Part(1,1,1,'',0,false,false,char)
  204. Mesh(a,1,.5,1,1)
  205. Weld(char['Left Arm'],a)
  206. l=Part(1,1,1,'',0,false,false,char)
  207. Mesh(l,1,.5,1,1)
  208. Weld(char['Right Leg'],l)
  209. l=Part(1,1,1,'',0,false,false,char)
  210. Mesh(l,1,.5,1,1)
  211. Weld(char['Left Leg'],l)
  212. h=Part(1,1,1,'',0,false,false,char)
  213. Mesh(h,2,1,1,1)
  214. Weld(char.Head,h)
  215. Spawn(function()
  216. while(coroutine.yield())do
  217. for i=1,#Parts do
  218. Parts[i].Mesh.VertexColor=GetDiscoColor(tick()*.5)--vertex 4 lyfe plr = game.Players.LocalPlayer
  219. mouse = plr:GetMouse()
  220. part = nil
  221. bp = nil
  222. particles = nil
  223. function clerp(a,b,c,d)
  224. for i = 0,d,.01 do
  225. a.CFrame = CFrame.new(b:lerp(c,i))
  226. wait()
  227. end
  228. end
  229. function slerp(a2,b2,c2,d2)
  230. for i2 = 0,d2,.01 do
  231. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  232. wait()
  233. end
  234. end
  235. mouse.KeyDown:connect(function(key)
  236. if key == "e" and plr.Character.Parent == workspace then
  237. plr.Character.Parent = workspace.Camera
  238. plr.Character.Archivable = true
  239. Instance.new("ForceField",plr.Character).Visible = false
  240. for y,t in pairs(plr.Character:GetChildren()) do
  241. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  242. t.Transparency = 1
  243. if t.Name == "Head" and t:FindFirstChild("face") then
  244. t.face.Transparency = 1
  245. end
  246. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  247. t.Handle.Transparency = 1
  248. end
  249. end
  250. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  251. 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)
  252. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  253. if plr.Character.Torso.Anchored == true then
  254. for y,t in pairs(plr.Character:GetChildren()) do
  255. if t:IsA("Part") then
  256. t.Anchored = false
  257. end
  258. end
  259. else
  260. for y,t in pairs(plr.Character:GetChildren()) do
  261. if t:IsA("Part") then
  262. t.Anchored = true
  263. end
  264. end
  265. end
  266. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  267. local clone = part:Clone()
  268. clone.Parent = workspace
  269. clone.Anchored = false
  270. clone:ClearAllChildren()
  271. clone.CanCollide = true
  272. bp.Parent = clone
  273. particles.Parent = clone
  274. if part.Parent:FindFirstChildOfClass("Humanoid") then
  275. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  276. end
  277. part:Destroy()
  278. part = clone
  279. elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
  280. plr.Character.Parent = workspace
  281. plr.Character.Archivable = false
  282. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  283. for y,t in pairs(plr.Character:GetChildren()) do
  284. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  285. t.Transparency = 0
  286. if t.Name == "Head" and t:FindFirstChild("face") then
  287. t.face.Transparency = 0
  288. end
  289. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  290. t.Handle.Transparency = 0
  291. end
  292. end
  293. end
  294. end)
  295. mouse.Button1Down:connect(function()
  296. if plr.Character.Parent == workspace.Camera then
  297. if mouse ~= nil then
  298. if mouse.Target ~= nil then
  299. part = mouse.Target
  300. bp = Instance.new("BodyPosition",part)
  301. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  302. bp.Position = part.Position
  303. particles = Instance.new("ParticleEmitter",part)
  304. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  305. particles.Size = NumberSequence.new(1)
  306. particles.Texture = "rbxassetid://292289455"
  307. particles.VelocitySpread = 360
  308. particles.Speed = NumberRange.new(0)
  309. particles.RotSpeed = NumberRange.new(0)
  310. particles.Rotation = NumberRange.new(0)
  311. particles.Rate = 250
  312. particles.Lifetime = NumberRange.new(.2,.4)
  313. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  314. dwn = true
  315. end
  316. end
  317. while dwn == true do
  318. wait()
  319. bp.Position = mouse.hit.p
  320. if part then
  321. if part.Parent:FindFirstChildOfClass("Humanoid") then
  322. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  323. end
  324. end
  325. end
  326. end
  327. end)
  328. mouse.Button1Up:connect(function()
  329. dwn = false
  330. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  331. if bp then bp:Destroy() end
  332. if particles then particles:Destroy() end
  333. end)
  334. base = Instance.new("ScreenGui",plr.PlayerGui)
  335. bbg = Instance.new("BillboardGui",plr.Character.Head)
  336. bbg.Size = UDim2.new(0,200,0,50)
  337. bbg.StudsOffset = Vector3.new(0,3,0)
  338. bbgTl = Instance.new("TextLabel",bbg)
  339. bbgTl.BackgroundTransparency = 1
  340. bbgTl.Size = UDim2.new(10,0,1,0)
  341. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  342. bbgTl.Font = "Code"
  343. bbgTl.Text = " "
  344. bbgTl.TextSize = 25
  345. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  346. bbgTl.TextColor3 = Color3.new(0,0,0)
  347. bbgTl.TextStrokeTransparency = 0
  348. bbgTl.TextWrapped = true
  349. plr.Chatted:connect(function(msg)
  350. bbgTl.Text = msg
  351. wait(5)
  352. if bbgTl.Text == msg then
  353. bbgTl.Text = " "
  354. end
  355. end)
  356. touchCounter = 0
  357. while wait() do
  358. if plr.Character.Parent == workspace.Camera then
  359. local c = plr.Character:Clone()
  360. c:MakeJoints()
  361. for y,t in pairs(c:GetChildren()) do
  362. if t:IsA("Part") then
  363. t.CanCollide = false
  364. t.Anchored = true
  365. t.Transparency = .5
  366. t.TopSurface = "Smooth"
  367. t.BottomSurface = "Smooth"
  368. t.RightSurface = "Smooth"
  369. t.LeftSurface = "Smooth"
  370. t.FrontSurface = "Smooth"
  371. t.BackSurface = "Smooth"
  372. t.BrickColor = BrickColor.new("Really black")
  373. if t.Name == "Head" and t:FindFirstChild("face") then
  374. t.face:Remove()
  375. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  376. t.roblox:Remove()
  377. elseif t.Name == "HumanoidRootPart" then
  378. t:Remove()
  379. end
  380. else
  381. t:Remove()
  382. end
  383. end
  384. c.Parent = workspace
  385. game.Debris:AddItem(c,.05)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement