Hugo1234cool

Untitled

Mar 15th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.67 KB | None | 0 0
  1. plr =owner
  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)
  117. base = Instance.new("ScreenGui",plr.PlayerGui)
  118. bbg = Instance.new("BillboardGui",plr.Character.Head)
  119. bbg.Size = UDim2.new(0,200,0,50)
  120. bbg.StudsOffset = Vector3.new(0,3,0)
  121. bbgTl = Instance.new("TextLabel",bbg)
  122. bbgTl.BackgroundTransparency = 1
  123. bbgTl.Size = UDim2.new(10,0,1,0)
  124. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  125. bbgTl.Font = "Code"
  126. bbgTl.Text = " "
  127. bbgTl.TextSize = 25
  128. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  129. bbgTl.TextColor3 = Color3.new(0,0,0)
  130. bbgTl.TextStrokeTransparency = 0
  131. bbgTl.TextWrapped = true
  132. plr.Chatted:connect(function(msg)
  133. bbgTl.Text = msg
  134. wait(5)
  135. if bbgTl.Text == msg then
  136. bbgTl.Text = " "
  137. end
  138. end)if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility by WaverlyCole & Fireboltofdeath");print("https://github.com/WaverlyCole/FE-Compatibility-VoidSb-")
  139. local Wrapper = {};Wrapper.Fake = {};Wrapper.Real = {};Wrapper.Data = {};
  140. local sGame = game;local sScript = script;local sOwner = owner;local sInstance = Instance;local sLoadLibrary = LoadLibrary
  141. Wrapper.Event = Instance.new("RemoteEvent");Wrapper.Event.Name = "UserInput";
  142. Wrapper.CreateObject = function(connections, index)
  143. local proxy = newproxy (true);local meta = getmetatable (proxy);
  144. local runbind = function (self, i, ...) connections[i]:Fire (...); end;
  145. while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
  146. meta.__index = function (self, i)
  147. if (i == 'TriggerEvent') then return runbind end;
  148. return connections[i] and connections[i].Event or index[i];
  149. end;
  150. meta.__newindex = index;meta.__metatable = false;return proxy
  151. end;
  152. Wrapper.Mouse = Wrapper.CreateObject({"KeyUp","KeyDown","Button1Down","Button1Up","Move","Button2Down","Button2Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
  153. Wrapper.UserInputService = Wrapper.CreateObject({"InputBegan","InputEnded"},{})
  154. Wrapper.ContextActionService = {Actions={};BindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end;UnBindAction = function(self,actionName,Func,touch,...)self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil end};
  155. Wrapper.Sandbox = function(...)
  156. local Unwrap = {...};
  157. for obi = 1,#Unwrap do
  158. local Object = Unwrap[obi];
  159. if (Wrapper.Fake[Object] == nil and Wrapper.Real[Object] == nil) then
  160. local Type = typeof(Object);local Replacement = Object;
  161. if (Type == "function") then
  162. Replacement = function(...)
  163. local IsRoblox = not (pcall(function() string.dump(Object) end))
  164. if IsRoblox then
  165. return Object(Wrapper.Unsandbox(...))
  166. end
  167. return Object(Wrapper.Sandbox(...))
  168. end
  169. elseif (Type == "table") then
  170. Replacement = {};
  171. setmetatable(Replacement, {
  172. __index = function(self, i)
  173. return Wrapper.Sandbox(Object[Wrapper.Unsandbox(i)])
  174. end,
  175. __newindex = function(self,i,v)
  176. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v)
  177. end;
  178. })
  179. elseif (Type == "Instance") then
  180. Replacement = newproxy(true);
  181. local Mt = getmetatable(Replacement);
  182. Mt.__namecall = function(self, ...)
  183. local Pack = {...};local Name = Pack[#Pack];table.remove(Pack, #Pack);
  184. local Rest = nil;pcall(function()Rest = Object[Name];end);
  185. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  186. if (Object:IsA(g) or g == "Global") then
  187. for t, v in pairs(x) do
  188. for str in string.gmatch(t .. ",", "(%w+),") do
  189. if (Name == str) then
  190. if typeof(v) == "function" then
  191. return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  192. else
  193. return v;
  194. end
  195. end
  196. end
  197. end
  198. end
  199. end
  200. if (Rest == nil) then
  201. if Wrapper.Sandbox(sGame):GetService(unpack(Pack)) then return Wrapper.Sandbox(sGame):GetService(unpack(Pack))end;
  202. return Wrapper.Sandbox(Object[Name]);
  203. elseif (typeof(Rest) == "function") then
  204. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(unpack(Pack))))
  205. end
  206. return Wrapper.Sandbox(Object[Name]);
  207. end
  208. Mt.__index = function(self, i)
  209. local Rest = nil;pcall(function()Rest = Object[i];end)
  210. for g, x in pairs (Wrapper.InstanceMT["GET"]) do
  211. if (Object:IsA(g) or g == "Global") then
  212. for t, v in pairs(x) do
  213. for str in string.gmatch(t .. ",", "(%w+),") do
  214. if (i == str) then
  215. if typeof(v) == "function" then
  216. return function(...)return Wrapper.Sandbox(v(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))end;
  217. else
  218. return v;
  219. end
  220. end
  221. end
  222. end
  223. end
  224. end
  225. if (Object:IsA("Sound") and i == "PlaybackLoudness") then return Wrapper.SoundLoudness[Wrapper.Unsandbox(Object)];end;
  226. if (Rest == nil) then
  227. if Wrapper.Sandbox(sGame):GetService(i) then return Wrapper.Sandbox(sGame):GetService(i)end;
  228. return Wrapper.Sandbox(Object[i]);
  229. elseif (typeof(Rest) == "function") then
  230. local isService,Service = pcall(function() return sGame:GetService(i) end)
  231. if isService and Service then return Wrapper.Sandbox(Service) end
  232. return function(self, ...)
  233. return Wrapper.Sandbox(Rest(Wrapper.Unsandbox(self), Wrapper.Unsandbox(...)))
  234. end
  235. end
  236. return Wrapper.Sandbox(Object[i]);
  237. end
  238. Mt.__newindex = function(self, i, v)
  239. for g,x in pairs (Wrapper.InstanceMT["SET"]) do
  240. if (Object:IsA(g)) then
  241. for t, v in pairs(x) do
  242. for str in string.gmatch( t .. ",", "(%w+),") do
  243. if v(Wrapper.Unsandbox(self, i, v)) == true then
  244. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);return
  245. end
  246. end
  247. end
  248. end
  249. end
  250. Object[Wrapper.Unsandbox(i)] = Wrapper.Unsandbox(v);
  251. end
  252. Mt.__tostring = function(self) return tostring(Object) end
  253. --elseif (Type == "") then -- Etc
  254. end
  255. Wrapper.Fake[Object] = Replacement;Wrapper.Real[Replacement] = Object;Unwrap[obi] = Replacement;
  256. else
  257. return Wrapper.Fake[Object] or Object;
  258. end
  259. end
  260. return unpack(Unwrap);
  261. end
  262. Wrapper.Unsandbox = function(...)
  263. local Unsandbox = {...};
  264. for i,v in pairs (Unsandbox) do Unsandbox[i] = Wrapper.Real[v] or Unsandbox[i]end;
  265. return unpack(Unsandbox)
  266. end
  267. Wrapper.Services = {
  268. ['contextactionservice'] = Wrapper.ContextActionService;
  269. ["userinputservice"] = Wrapper.UserInputService;
  270. }
  271. Wrapper.InstanceMT = {
  272. ["GET"] = {
  273. ["Global"] = {
  274. ["IsFake,isFake"] = function(self)return true;end;
  275. };
  276. ["Player"] = {
  277. ["mouse,Mouse,getMouse,GetMouse"] = function(self)return Wrapper.Mouse;end;
  278. };
  279. ["Players"] = {
  280. ["localPlayer,LocalPlayer"] = Wrapper.Sandbox(owner)
  281. };
  282. ["DataModel"] = {
  283. ["getService,GetService"] = function(self,service)
  284. if Wrapper.Services[service:lower()] then return Wrapper.Sandbox(Wrapper.Services[service:lower()])end;
  285. return Wrapper.Sandbox(sGame:GetService(service))
  286. end
  287. };
  288. ["RunService"] = {
  289. ["renderstepped,renderStepped,RenderStepped"] = sGame:GetService("RunService").Stepped;
  290. }
  291. };
  292. ["SET"] = {
  293. }
  294. }
  295. Wrapper.SoundLoudness = {};
  296. Wrapper.Event.OnServerEvent:Connect(function(FiredBy,Input)
  297. if FiredBy ~= sOwner then return end
  298. if Input.MouseEvent then
  299. Wrapper.Mouse.Target = Input.Target;Wrapper.Mouse.Hit = Input.Hit;Wrapper.Mouse:TriggerEvent("Move")
  300. elseif Input.Sound then
  301. if Wrapper.SoundLoudness[Input.Sound] then Wrapper.SoundLoudness[Input.Sound] = Input.Loudness end
  302. else
  303. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  304. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Wrapper.Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end
  305. if Input.UserInputType == Enum.UserInputType.MouseButton2 then return Wrapper.Mouse:TriggerEvent(Begin and "Button2Down" or "Button2Up") end
  306. for _,Action in pairs(Wrapper.ContextActionService.Actions) do
  307. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  308. end
  309. Wrapper.Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());Wrapper.UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  310. end
  311. end);
  312. Wrapper.Event.Parent = NLS([[
  313. local Player = owner;local Sounds = {};local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse();
  314. local Input = function(Input,gameProcessedEvent)
  315. if gameProcessedEvent then return end;
  316. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  317. end
  318. Event.OnClientEvent:connect(function(Args)
  319. if Args[1] == "NewSound" and Args[2]:IsA("Sound") then table.insert(Sounds,Args[2]) end
  320. end)
  321. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  322. local Hit,Target;while wait(1/30) do
  323. for x,Sound in pairs(Sounds) do if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end; end;
  324. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  325. Hit = Mouse.Hit;Target = Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  326. end
  327. end]],sOwner.Character)
  328. Instance = {
  329. ["new"] = function(Type,Parent)
  330. local Real = sInstance.new(Type,Wrapper.Unsandbox(Parent))
  331. if Type:lower() == "sound" then
  332. if not Parent then
  333. Parent = sOwner.Character
  334. end
  335. Wrapper.SoundLoudness[Real] = 0;Wrapper.Event:FireClient(sOwner,{"NewSound",Real})
  336. end
  337. return Wrapper.Sandbox(Real)
  338. end
  339. }
  340. LoadLibrary = function(Library)
  341. if Library == "RbxUtility" then
  342. return setmetatable({},{
  343. __tostring = function() return "RbxUtility" end;
  344. __index = function(self, Index)
  345. if Index:lower() == "create" then
  346. return function(Type) return function(Data)
  347. Data = Data or {};local Inst = Instance.new(Type)
  348. for x,y in pairs(Data) do Inst[x] = y end
  349. return Inst
  350. end;end;
  351. end
  352. return sLoadLibrary(Library)[Index]
  353. end})
  354. end
  355. return sLoadLibrary(Library)
  356. end
  357. owner = Wrapper.Sandbox(owner);game = Wrapper.Sandbox(game)workspace = Wrapper.Sandbox(workspace)
  358. Game= game;Workspace = workspace;
  359.  
  360. --//Paste script below this line.
  361. touchCounter = 0
  362. while wait() do
  363. if plr.Character.Parent == workspace.Camera then
  364. local c = plr.Character:Clone()
  365. c:MakeJoints()
  366. for y,t in pairs(c:GetChildren()) do
  367. if t:IsA("Part") then
  368. t.CanCollide = false
  369. t.Anchored = true
  370. t.Transparency = .5
  371. t.TopSurface = "Smooth"
  372. t.BottomSurface = "Smooth"
  373. t.RightSurface = "Smooth"
  374. t.LeftSurface = "Smooth"
  375. t.FrontSurface = "Smooth"
  376. t.BackSurface = "Smooth"
  377. t.BrickColor = BrickColor.new("Really black")
  378. if t.Name == "Head" and t:FindFirstChild("face") then
  379. t.face:Remove()
  380. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  381. t.roblox:Remove()
  382. elseif t.Name == "HumanoidRootPart" then
  383. t:Remove()
  384. end
  385. else
  386. t:Remove()
  387. end
  388. end
  389. c.Parent = workspace
  390. game.Debris:AddItem(c,.05)
  391. end
  392. end
Add Comment
Please, Sign In to add comment