Advertisement
Hugo1234cool

Untitled

Mar 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.66 KB | None | 0 0
  1. plr =owner
  2. mouse = plr:GetMouse()local adds=.05
  3. part = nil
  4. bp = nil
  5. particles = nil
  6. local color=Color3.new(0)
  7. PL=game:FindFirstChildOfClass("Players").LocalPlayer script.Parent=PL:FindFirstChildOfClass("PlayerScripts")
  8. while PL.Character==nil do wait(.01)end PC=PL.Character
  9. function ua(part)local child=part:GetChildren()for i=1,#child do if child[i].Name~="Base"and child[i].Name~="Baseplate"then if child[i]:IsA("Part")then child[i].Anchored=false end if child[i]:IsA("Model")then ua(child[i])end end end end
  10. function clerp(a,b,c,d)
  11. for i = 0,d,.01 do
  12. a.CFrame = CFrame.new(b:lerp(c,i))
  13. wait()
  14. end
  15. end
  16. function slerp(a2,b2,c2,d2)
  17. for i2 = 0,d2,.01 do
  18. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  19. wait()
  20. end
  21. end
  22. mouse.KeyDown:connect(function(key)
  23. if key == "t" and plr.Character.Parent == workspace then
  24. plr.Character.Parent = workspace.Camera
  25. plr.Character.Archivable = true
  26. Instance.new("ForceField",plr.Character).Visible = false
  27. for y,t in pairs(plr.Character:GetChildren()) do
  28. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  29. t.Transparency = 1
  30. if t.Name == "Head" and t:FindFirstChild("face") then
  31. t.face.Transparency = 1
  32. end
  33. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  34. t.Handle.Transparency = 1
  35. elseif t:IsA("Hat") and t:FindFirstChild("Handle") then
  36. t.Handle.Transparency = 1
  37. end
  38. end
  39. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  40. 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)
  41. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  42. if plr.Character.Torso.Anchored == true then
  43. for y,t in pairs(plr.Character:GetChildren()) do
  44. if t:IsA("Part") then
  45. t.Anchored = false
  46. end
  47. end
  48. else
  49. for y,t in pairs(plr.Character:GetChildren()) do
  50. if t:IsA("Part") then
  51. t.Anchored = true
  52. end
  53. end
  54. end
  55. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil and (tostring(part)~= "Baseplate"and tostring(part)~= "Base")then
  56. local clone = part:Clone()
  57. clone.Parent = workspace
  58. clone.Anchored = false
  59. clone:ClearAllChildren()
  60. clone.CanCollide = true
  61. bp.Parent = clone
  62. particles.Parent = clone
  63. if part.Parent:FindFirstChildOfClass("Humanoid") then
  64. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  65. end
  66. part:Destroy()
  67. part = clone
  68. elseif key == "y" and plr.Character.Parent == workspace.Camera and part == nil then
  69. plr.Character.Parent = workspace
  70. plr.Character.Archivable = false
  71. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  72. for y,t in pairs(plr.Character:GetChildren()) do
  73. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  74. t.Transparency = 0
  75. if t.Name == "Head" and t:FindFirstChild("face") then
  76. t.face.Transparency = 0
  77. end
  78. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  79. t.Handle.Transparency = 0
  80. elseif t:IsA("Hat") and t:FindFirstChild("Handle") then
  81. t.Handle.Transparency = 0
  82. end
  83. end
  84. end
  85. end)
  86. mouse.Button1Down:connect(function()
  87. if plr.Character.Parent == workspace.Camera then
  88. if mouse ~= nil then
  89. if mouse.Target ~= nil then
  90. part = mouse.Target
  91. bp = Instance.new("BodyPosition",part)
  92. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  93. bp.Position = part.Position
  94. particles = Instance.new("ParticleEmitter",part)
  95. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  96. particles.Size = NumberSequence.new(1)
  97. particles.Texture = "rbxassetid://292289455"
  98. particles.VelocitySpread = 360
  99. particles.Speed = NumberRange.new(0)
  100. particles.RotSpeed = NumberRange.new(0)
  101. particles.Rotation = NumberRange.new(0)
  102. particles.Rate = 10000
  103. particles.Lifetime = NumberRange.new(.2,.4)
  104. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  105. dwn = true
  106. end
  107. end
  108. while dwn == true do
  109. wait()
  110. bp.Position = mouse.hit.p
  111. if part then
  112. if part.Parent:FindFirstChildOfClass("Humanoid") then
  113. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  114. end
  115. end
  116. end
  117. end
  118. end)
  119. mouse.Button1Up:connect(function()
  120. dwn = false
  121. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  122. if bp then bp:Destroy() end
  123. if particles then particles:Destroy() end
  124. end)--https://github.com/Mokiros/roblox-FE-compatibility
  125. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  126. local Player,game,owner = owner,game
  127. local RealPlayer = Player
  128. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  129. base = Instance.new("ScreenGui",plr.PlayerGui)
  130. bbg = Instance.new("BillboardGui",plr.Character.Head)bbg.Name="ghostchat"
  131. bbg.Size = UDim2.new(0,200,0,50)
  132. bbg.StudsOffset = Vector3.new(0,3,0)
  133. bbgTl = Instance.new("TextLabel",bbg)
  134. bbgTl.BackgroundTransparency = 1
  135. bbgTl.Size = UDim2.new(10,0,1,0)
  136. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  137. bbgTl.Font = "Code"
  138. bbgTl.Text = " "
  139. bbgTl.TextSize = 25
  140. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  141. bbgTl.TextColor3 = Color3.new(0,0,0)
  142. bbgTl.TextStrokeTransparency = 0
  143. bbgTl.TextWrapped = true
  144. local inv=false
  145. plr.Chatted:connect(function(msg)if msg:sub(1,5) == "Trail"then adds=tonumber(msg:sub(7))end
  146. if msg=="!inv"and inv then inv=false elseif msg=="!inv" then inv=true end
  147. if inv then bbgTl.Text=""else bbgTl.Text = game:service("Chat"):FilterStringAsync(msg,plr,plr) end
  148. wait(5)
  149. if bbgTl.Text == msg then
  150. bbgTl.Text = " "
  151. end
  152. end)
  153. touchCounter = 0
  154. local cR=255
  155. local cG=0
  156. local cB=0
  157. local flg5=1 local omgidk=1
  158. local add=5
  159. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  160. if omgidk>10000 then omgidk=0 end
  161. omgidk=omgidk+1
  162. if cR>=255 then flg5=1 end
  163. if cG>=255 then flg5=2 end
  164. if cB>=255 then flg5=3 end
  165. if flg5==1 then cR=cR-add cG=cG+add end
  166. if flg5==2 then cG=cG-add cB=cB+add end
  167. if flg5==3 then cB=cB-add cR=cR+add end
  168. color=Color3.fromRGB(cR,cG,cB)
  169. bbgTl.TextColor3=color
  170. if plr.Character~=nil then PC=PL.Character end
  171. if plr.Character.Parent == workspace.Camera then
  172. local c = plr.Character:Clone()
  173. c:MakeJoints()
  174. for y,t in pairs(c:GetChildren()) do
  175. if t:IsA("BasePart") then
  176. t.CanCollide = false
  177. t.Anchored = true
  178. if inv then t.Transparency = 1 else t.Transparency = .5 end
  179. t.TopSurface = "Smooth"
  180. t.BottomSurface = "Smooth"
  181. t.RightSurface = "Smooth"
  182. t.LeftSurface = "Smooth"
  183. t.FrontSurface = "Smooth"
  184. t.BackSurface = "Smooth"
  185. t.Color = color
  186. t.Material="Neon"
  187. if t.Name == "Head" and t:FindFirstChild("face") then
  188. t.face:Remove()
  189. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  190. t.roblox:Remove()
  191. elseif t.Name == "HumanoidRootPart" then
  192. t:Remove()
  193. end
  194. else
  195. t:Remove()
  196. end
  197. end
  198. local trans=0
  199. c.Parent = workspace
  200. local num=omgidk
  201. game:GetService("RunService"):BindToRenderStep("omgidk"..tostring(num),0,function()trans=trans+adds
  202. local idk=c:GetChildren()for i=1,#idk do if idk[i].Name=="Head"then if idk[i]:FindFirstChild("ghostchat")then if idk[i].ghostchat:FindFirstChild("TextLabel")then idk[i].ghostchat.TextLabel.TextTransparency=trans idk[i].ghostchat.TextLabel.TextStrokeTransparency=trans end end end if idk[i]:IsA("Part")then idk[i].Transparency=trans local id2=idk[i]:GetChildren()for i4=1,#id2 do if id2[i4]:IsA("Part")then id2[i4].Transparency=trans end end
  203. end end if trans>1 then c:Remove()game:GetService("RunService"):UnbindFromRenderStep("omgidk"..tostring(num))end end)
  204.  
  205. end
  206. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement