Hugo1234cool

Untitled

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