Advertisement
ghostteen14

Untitled

Mar 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.69 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Joseph Deramus")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147. --{{{ slenercat5's }}}---
  148. --{ Beat drop script }--
  149. Player=game.Players.LocalPlayer
  150. Character=Player.Character
  151. Head=Character:waitForChild('Head')
  152. Torso=Character:waitForChild('Torso')
  153. RootPart=Character:waitForChild('HumanoidRootPart')
  154. Character.Health:remove()
  155. Character.Humanoid.MaxHealth=0
  156. Humanoid=Character.Humanoid
  157. Humanoid.Name='F'..math.random(0,1).. math.random(0,1) .. 'F' .. math.random(0,1)
  158. ff=Instance.new('ForceField',Character)ff.Visible=false
  159. function rpg()-- remove player gravity
  160. Character.Animate.Parent=nil
  161. for _,v in pairs (Torso:GetChildren()) do
  162. if v:IsA('Motor6D') then
  163. v:remove()
  164. end
  165. end
  166.  
  167. local svch = Character
  168. local hum = Character:findFirstChild("Humanoid")
  169. Character.Archivable = true
  170. local chrclone = Character:clone()
  171. Character.Archivable = false
  172.  
  173. local ch = chrclone:GetChildren()
  174. local i
  175. for i = 1,#ch do
  176. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  177. ch[i]:remove()
  178. end
  179. end
  180. local function Scan(ch)
  181. local e
  182. for e = 1,#ch do
  183. Scan(ch[e]:GetChildren())
  184. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  185. ch[e]:remove()
  186. end
  187. end
  188. end
  189. Scan(chrclone:GetChildren())
  190.  
  191. local hum2 = chrclone:findFirstChild("Humanoid")
  192.  
  193.  
  194. if hum2 ~= nil then
  195. hum2.Name = "Humanoid2"
  196. hum2.PlatformStand = true
  197. hum2.Sit = true
  198. hum2.MaxHealth = 0
  199. hum2.Health = 0
  200. end
  201.  
  202. local ch = Character:GetChildren()
  203. local i
  204. for i = 1,#ch do
  205. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  206. ch[i]:remove()
  207. end
  208. end
  209.  
  210.  
  211.  
  212. local ch = Character:GetChildren()
  213. local i
  214. local Torso = Character.Torso
  215. local movevector = Vector3.new()
  216.  
  217. local Head = Character:FindFirstChild("Head")
  218. if Head then
  219. local Neck = Instance.new("Weld")
  220. Neck.Name = "Neck"
  221. Neck.Part0 = Torso
  222. Neck.Part1 = Head
  223. Neck.C0 = CFrame.new(0, 1.5, 0)
  224. Neck.C1 = CFrame.new()
  225. Neck.Parent = Torso
  226. end
  227. local Limb = Character:FindFirstChild("Right Arm")
  228. if Limb then
  229.  
  230. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  231. local Joint = Instance.new("Glue")
  232. Joint.Name = "RightShoulder"
  233. Joint.Part0 = Torso
  234. Joint.Part1 = Limb
  235. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  236. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  237. Joint.Parent = Torso
  238.  
  239. local B = Instance.new("Part")
  240. B.TopSurface = 0
  241. B.BottomSurface = 0
  242. B.formFactor = "Symmetric"
  243. B.Size = Vector3.new(1, 1, 1)
  244. B.Transparency = 1
  245. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  246. B.Parent = Character
  247. local W = Instance.new("Weld")
  248. W.Part0 = Limb
  249. W.Part1 = B
  250. W.C0 = CFrame.new(0, -0.5, 0)
  251. W.Parent = Limb
  252.  
  253. end
  254. local Limb = Character:FindFirstChild("Left Arm")
  255. if Limb then
  256.  
  257. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  258. local Joint = Instance.new("Glue")
  259. Joint.Name = "LeftShoulder"
  260. Joint.Part0 = Torso
  261. Joint.Part1 = Limb
  262. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  263. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  264. Joint.Parent = Torso
  265.  
  266. local B = Instance.new("Part")
  267. B.TopSurface = 0
  268. B.BottomSurface = 0
  269. B.formFactor = "Symmetric"
  270. B.Size = Vector3.new(1, 1, 1)
  271. B.Transparency = 1
  272. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  273. B.Parent = Character
  274. local W = Instance.new("Weld")
  275. W.Part0 = Limb
  276. W.Part1 = B
  277. W.C0 = CFrame.new(0, -0.5, 0)
  278. W.Parent = Limb
  279.  
  280. end
  281. local Limb = Character:FindFirstChild("Right Leg")
  282. if Limb then
  283.  
  284. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  285. local Joint = Instance.new("Glue")
  286. Joint.Name = "RightHip"
  287. Joint.Part0 = Torso
  288. Joint.Part1 = Limb
  289. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  290. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  291. Joint.Parent = Torso
  292.  
  293. local B = Instance.new("Part")
  294. B.TopSurface = 0
  295. B.BottomSurface = 0
  296. B.formFactor = "Symmetric"
  297. B.Size = Vector3.new(1, 1, 1)
  298. B.Transparency = 1
  299. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  300. B.Parent = Character
  301. local W = Instance.new("Weld")
  302. W.Part0 = Limb
  303. W.Part1 = B
  304. W.C0 = CFrame.new(0, -0.5, 0)
  305. W.Parent = Limb
  306.  
  307. end
  308. Humanoid.WalkSpeed=250 -- flight speed
  309.  
  310. local Limb = Character:FindFirstChild("Left Leg")
  311. if Limb then
  312.  
  313. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  314. local Joint = Instance.new("Glue")
  315. Joint.Name = "LeftHip"
  316. Joint.Part0 = Torso
  317. Joint.Part1 = Limb
  318. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  319. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  320. Joint.Parent = Torso
  321.  
  322. local B = Instance.new("Part")
  323. B.TopSurface = 0
  324. B.BottomSurface = 0
  325. B.formFactor = "Symmetric"
  326. B.Size = Vector3.new(1, 1, 1)
  327. B.Transparency = 1
  328. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  329. B.Parent = Character
  330. local W = Instance.new("Weld")
  331. W.Part0 = Limb
  332. W.Part1 = B
  333. W.C0 = CFrame.new(0, -0.5, 0)
  334. W.Parent = Limb
  335.  
  336. end
  337. --[
  338. local Bar = Instance.new("Part")
  339. Bar.TopSurface = 0
  340. Bar.BottomSurface = 0
  341. Bar.formFactor = "Symmetric"
  342. Bar.Size = Vector3.new(1, 1, 1)
  343. Bar.Transparency = 1
  344. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  345. Bar.Parent = Character
  346. local Weld = Instance.new("Weld")
  347. Weld.Part0 = Torso
  348. Weld.Part1 = Bar
  349. Weld.C0 = CFrame.new(0, 0.5, 0)
  350. Weld.Parent = Torso
  351. --]]-- ripped that from a random script. Ball sockt joints were not working ^^^
  352. Humanoid.AutoRotate=false-- so you cant spazz out bruh
  353. RootPart.RootJoint:remove()
  354.  
  355. B=Instance.new('BallSocketConstraint',Torso)
  356. At1=Instance.new('Attachment',Torso)
  357. At2=Instance.new('Attachment',RootPart)
  358. B.Attachment1=At1
  359. B.Attachment0=At2
  360. for _,v in pairs(Character:GetChildren()) do
  361. if v.Name=='Part' then
  362. local keypoints = {}
  363.  
  364. for i = 0,1,0.1 do
  365. local color = Color3.fromHSV(i,1,1)
  366. local keypoint = ColorSequenceKeypoint.new(i,color)
  367. table.insert(keypoints,keypoint)
  368. end
  369. At1=Instance.new('Attachment',v)
  370. At1.CFrame=CFrame.new(0,0,0)
  371. At2=Instance.new('Attachment',v)
  372. At2.CFrame=CFrame.new(0,-1,0)
  373. local particle = Instance.new("Trail",v)
  374. particle.Color = ColorSequence.new(keypoints)
  375. table.insert(attaches,particle)
  376. particle.Lifetime=1
  377. particle.Attachment0=At1
  378. particle.Attachment1=At2
  379. particle.Texture='http://www.roblox.com/asset/?id=967852042'
  380. end
  381. if v:IsA('Part') then
  382. g=Instance.new('BodyForce',v)
  383. g.force = Vector3.new(0, game.Workspace.Gravity, 0)*Vector3.new(0,v:GetMass(),0)
  384. elseif v:IsA('Accessory') and v:findFirstChild('Handle')~=nil then
  385. g=Instance.new('BodyForce',v.Handle)
  386. g.force = Vector3.new(0, game.Workspace.Gravity, 0)*Vector3.new(0,v.Handle:GetMass(),0)
  387. end
  388. end
  389. end
  390. attaches={
  391.  
  392. }
  393. Character.Parent = workspace
  394.  
  395. --game.Debris:AddItem(Character, 12)
  396.  
  397. --[[if movevector ~= Vector3.new() then
  398. for i = 1,10 do
  399. wait()
  400. Torso.Velocity = movevector * 30
  401. end
  402. end]]--
  403.  
  404. e,q=false
  405. Ms=Player:GetMouse()
  406. Ms.KeyDown:connect(function(k)
  407. if floating then
  408. if k=='f' then
  409. for _,v in pairs(attaches) do
  410. if v.Enabled==true then
  411. v.Enabled=false
  412. else v.Enabled=true
  413. end
  414. end
  415. end
  416. if k=='q' then
  417. q=true
  418. while q do
  419. wait()
  420. RootPart.Velocity=Vector3.new(0,-100,0)
  421. end
  422. elseif k=='e' then
  423. e=true
  424. while e do
  425. wait()
  426. RootPart.Velocity=Vector3.new(0,100,0)
  427. end
  428. end
  429. end
  430. end)
  431. warn"-{ slenercat5's }-"
  432. warn'-{{{flamingo script}}}-'
  433. warn'-{{ E is to raise }}-'
  434. warn'-{{ Q is to lower }}-'
  435. warn'{F is to toggle trails}'
  436. Ms.KeyUp:connect(function(k)
  437. print(k)
  438. if k=='q' then
  439. q=false
  440.  
  441. elseif k=='e' then
  442. e=false
  443. end
  444. end)
  445. local keypoints = {}
  446.  
  447. light={
  448.  
  449. }
  450.  
  451. TEHSONG=Instance.new('Sound',Torso) TEHSONG.SoundId='rbxassetid://1260234844' TEHSONG.Volume=2 TEHSONG.PlaybackSpeed=1
  452. TEHSONG:Play()
  453. Light=Instance.new('SurfaceLight',Torso)
  454. Light.Face='Top'
  455. Light2=Instance.new('SurfaceLight',Torso)
  456. Light2.Face='Front'
  457. Light3=Instance.new('SurfaceLight',Torso)
  458. Light3.Face='Back'
  459. Light4=Instance.new('SurfaceLight',Torso)
  460. Light4.Face='Right'
  461. Light5=Instance.new('SurfaceLight',Torso)
  462. Light5.Face='Left'
  463. table.insert(light,Light)
  464. table.insert(light,Light2)
  465. table.insert(light,Light3)
  466. table.insert(light,Light4)
  467. table.insert(light,Light5)
  468.  
  469. --Converted with ttyyuu12345's model to script plugin v4
  470. function sandbox(var,func)
  471. local env = getfenv(func)
  472. local newenv = setmetatable({},{
  473. __index = function(self,k)
  474. if k=="script" then
  475. return var
  476. else
  477. return env[k]
  478. end
  479. end,
  480. })
  481. setfenv(func,newenv)
  482. return func
  483. end
  484.  
  485.  
  486. floating=false
  487. while 1 do
  488. for _,v in pairs(attaches) do
  489. v.LightEmission=TEHSONG.PlaybackLoudness/150
  490. end
  491. Humanoid.Name='F'..math.random(0,1).. math.random(0,1) .. 'F' .. math.random(0,1)
  492. if not floating then
  493. for _,v in pairs(light) do
  494. v.Color=Color3.new(1,1,1)
  495. end
  496.  
  497. else
  498. for _,v in pairs(light) do
  499. v.Range=TEHSONG.PlaybackLoudness
  500. v.Color=Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
  501. end
  502. end
  503. if floating then
  504. workspace.CurrentCamera.FieldOfView=80+TEHSONG.PlaybackLoudness/150
  505. end
  506. if TEHSONG.TimePosition>11 then-- beat drop
  507. if not floating then
  508. rpg()
  509. floating=true
  510. print(floating)
  511. end
  512. end
  513. wait()
  514. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement