Advertisement
JacksoMykalJunior

RAINBOW GHOST FE

Mar 6th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.40 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
  5. print("Have Fun!")
  6. script.Parent = Player.Character
  7.  
  8. --RemoteEvent for communicating
  9. local Event = Instance.new("RemoteEvent")
  10. Event.Name = "UserInput_Event"
  11.  
  12. --Fake event to make stuff like Mouse.KeyDown work
  13. local function fakeEvent()
  14. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  15. t.connect = t.Connect
  16. return t
  17. end
  18.  
  19. --Creating fake input objects with fake variables
  20. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  21. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  22. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  23. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  24. end}
  25. --Merged 2 functions into one by checking amount of arguments
  26. CAS.UnbindAction = CAS.BindAction
  27.  
  28. --This function will trigger the events that have been :Connect()'ed
  29. local function te(self,ev,...)
  30. local t = m[ev]
  31. if t and t._fakeEvent and t.Function then
  32. t.Function(...)
  33. end
  34. end
  35. m.TrigEvent = te
  36. UIS.TrigEvent = te
  37.  
  38. Event.OnServerEvent:Connect(function(plr,io)
  39. if plr~=Player then return end
  40. if io.isMouse then
  41. m.Target = io.Target
  42. m.Hit = io.Hit
  43. else
  44. local b = io.UserInputState == Enum.UserInputState.Begin
  45. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  46. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  47. end
  48. for _,t in pairs(CAS.Actions) do
  49. for _,k in pairs(t.Keys) do
  50. if k==io.KeyCode then
  51. t.Function(t.Name,io.UserInputState,io)
  52. end
  53. end
  54. end
  55. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  57. end
  58. end)
  59. Event.Parent = NLS([==[
  60. local Player = owner
  61. local Event = script:WaitForChild("UserInput_Event")
  62.  
  63. local UIS = game:GetService("UserInputService")
  64. local input = function(io,a)
  65. if a then return end
  66. --Since InputObject is a client-side instance, we create and pass table instead
  67. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  68. end
  69. UIS.InputBegan:Connect(input)
  70. UIS.InputEnded:Connect(input)
  71.  
  72. local Mouse = Player:GetMouse()
  73. local h,t
  74. --Give the server mouse data 30 times every second, but only if the values changed
  75. --If player is not moving their mouse, client won't fire events
  76. while wait(1/30) do
  77. if h~=Mouse.Hit or t~=Mouse.Target then
  78. h,t=Mouse.Hit,Mouse.Target
  79. Event:FireServer({isMouse=true,Target=t,Hit=h})
  80. end
  81. end]==],Player.Character)
  82. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  83. end
  84.  
  85.  
  86. plr = owner
  87. part = nil
  88. bp = nil
  89. particles = nil
  90. local color=Color3.new(0)
  91. PL=game:FindFirstChildOfClass("Players").owner script.Parent=PL:FindFirstChildOfClass("PlayerScripts")
  92. while PL.Character==nil do wait(.01)end PC=PL.Character
  93. 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
  94. function clerp(a,b,c,d)
  95. for i = 0,d,.01 do
  96. a.CFrame = CFrame.new(b:lerp(c,i))
  97. wait()
  98. end
  99. end
  100. function slerp(a2,b2,c2,d2)
  101. for i2 = 0,d2,.01 do
  102. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  103. wait()
  104. end
  105. end
  106. mouse.KeyDown:connect(function(key)
  107. if key == "t" and plr.Character.Parent == workspace then
  108. plr.Character.Parent = workspace.Camera
  109. plr.Character.Archivable = true
  110. Instance.new("ForceField",plr.Character).Visible = false
  111. for y,t in pairs(plr.Character:GetChildren()) do
  112. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  113. t.Transparency = 1
  114. if t.Name == "Head" and t:FindFirstChild("face") then
  115. t.face.Transparency = 1
  116. end
  117. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  118. t.Handle.Transparency = 1
  119. elseif t:IsA("Hat") and t:FindFirstChild("Handle") then
  120. t.Handle.Transparency = 1
  121. end
  122. end
  123. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  124. 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)
  125. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  126. if plr.Character.Torso.Anchored == true then
  127. for y,t in pairs(plr.Character:GetChildren()) do
  128. if t:IsA("Part") then
  129. t.Anchored = false
  130. end
  131. end
  132. else
  133. for y,t in pairs(plr.Character:GetChildren()) do
  134. if t:IsA("Part") then
  135. t.Anchored = true
  136. end
  137. end
  138. end
  139. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil and (tostring(part)~= "Baseplate"and tostring(part)~= "Base")then
  140. local clone = part:Clone()
  141. clone.Parent = workspace
  142. clone.Anchored = false
  143. clone:ClearAllChildren()
  144. clone.CanCollide = true
  145. bp.Parent = clone
  146. particles.Parent = clone
  147. if part.Parent:FindFirstChildOfClass("Humanoid") then
  148. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  149. end
  150. part:Destroy()
  151. part = clone
  152. elseif key == "y" and plr.Character.Parent == workspace.Camera and part == nil then
  153. plr.Character.Parent = workspace
  154. plr.Character.Archivable = false
  155. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  156. for y,t in pairs(plr.Character:GetChildren()) do
  157. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  158. t.Transparency = 0
  159. if t.Name == "Head" and t:FindFirstChild("face") then
  160. t.face.Transparency = 0
  161. end
  162. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  163. t.Handle.Transparency = 0
  164. elseif t:IsA("Hat") and t:FindFirstChild("Handle") then
  165. t.Handle.Transparency = 0
  166. end
  167. end
  168. end
  169. end)
  170. mouse.Button1Down:connect(function()
  171. if plr.Character.Parent == workspace.Camera then
  172. if mouse ~= nil then
  173. if mouse.Target ~= nil then
  174. part = mouse.Target
  175. bp = Instance.new("BodyPosition",part)
  176. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  177. bp.Position = part.Position
  178. particles = Instance.new("ParticleEmitter",part)
  179. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  180. particles.Size = NumberSequence.new(1)
  181. particles.Texture = "rbxassetid://292289455"
  182. particles.VelocitySpread = 360
  183. particles.Speed = NumberRange.new(0)
  184. particles.RotSpeed = NumberRange.new(0)
  185. particles.Rotation = NumberRange.new(0)
  186. particles.Rate = 10000
  187. particles.Lifetime = NumberRange.new(.2,.4)
  188. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  189. dwn = true
  190. end
  191. end
  192. while dwn == true do
  193. wait()
  194. bp.Position = mouse.hit.p
  195. if part then
  196. if part.Parent:FindFirstChildOfClass("Humanoid") then
  197. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  198. end
  199. end
  200. end
  201. end
  202. end)
  203. mouse.Button1Up:connect(function()
  204. dwn = false
  205. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  206. if bp then bp:Destroy() end
  207. if particles then particles:Destroy() end
  208. end)
  209. base = Instance.new("ScreenGui",plr.PlayerGui)
  210. bbg = Instance.new("BillboardGui",plr.Character.Head)bbg.Name="ghostchat"
  211. bbg.Size = UDim2.new(0,200,0,50)
  212. bbg.StudsOffset = Vector3.new(0,3,0)
  213. bbgTl = Instance.new("TextLabel",bbg)
  214. bbgTl.BackgroundTransparency = 1
  215. bbgTl.Size = UDim2.new(10,0,1,0)
  216. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  217. bbgTl.Font = "Code"
  218. bbgTl.Text = " "
  219. bbgTl.TextSize = 25
  220. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  221. bbgTl.TextColor3 = Color3.new(0,0,0)
  222. bbgTl.TextStrokeTransparency = 0
  223. bbgTl.TextWrapped = true
  224. local inv=false
  225. plr.Chatted:connect(function(msg)if msg:sub(1,5) == "Trail"then adds=tonumber(msg:sub(7))end
  226. if msg=="!inv"and inv then inv=false elseif msg=="!inv" then inv=true end
  227. if inv then bbgTl.Text=""else bbgTl.Text = game:service("Chat"):FilterStringAsync(msg,plr,plr) end
  228. wait(5)
  229. if bbgTl.Text == msg then
  230. bbgTl.Text = " "
  231. end
  232. end)
  233. touchCounter = 0
  234. local cR=255
  235. local cG=0
  236. local cB=0
  237. local flg5=1 local omgidk=1
  238. local add=5
  239. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  240. if omgidk>10000 then omgidk=0 end
  241. omgidk=omgidk+1
  242. if cR>=255 then flg5=1 end
  243. if cG>=255 then flg5=2 end
  244. if cB>=255 then flg5=3 end
  245. if flg5==1 then cR=cR-add cG=cG+add end
  246. if flg5==2 then cG=cG-add cB=cB+add end
  247. if flg5==3 then cB=cB-add cR=cR+add end
  248. color=Color3.fromRGB(cR,cG,cB)
  249. bbgTl.TextColor3=color
  250. if plr.Character~=nil then PC=PL.Character end
  251. if plr.Character.Parent == workspace.Camera then
  252. local c = plr.Character:Clone()
  253. c:MakeJoints()
  254. for y,t in pairs(c:GetChildren()) do
  255. if t:IsA("BasePart") then
  256. t.CanCollide = false
  257. t.Anchored = true
  258. if inv then t.Transparency = 1 else t.Transparency = .5 end
  259. t.TopSurface = "Smooth"
  260. t.BottomSurface = "Smooth"
  261. t.RightSurface = "Smooth"
  262. t.LeftSurface = "Smooth"
  263. t.FrontSurface = "Smooth"
  264. t.BackSurface = "Smooth"
  265. t.Color = color
  266. t.Material="Neon"
  267. if t.Name == "Head" and t:FindFirstChild("face") then
  268. t.face:Remove()
  269. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  270. t.roblox:Remove()
  271. elseif t.Name == "HumanoidRootPart" then
  272. t:Remove()
  273. end
  274. else
  275. t:Remove()
  276. end
  277. end
  278. local trans=0
  279. c.Parent = workspace
  280. local num=omgidk
  281. game:GetService("RunService"):BindToRenderStep("omgidk"..tostring(num),0,function()trans=trans+adds
  282. 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
  283. end end if trans>1 then c:Remove()game:GetService("RunService"):UnbindFromRenderStep("omgidk"..tostring(num))end end)
  284.  
  285. end
  286. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement