Advertisement
DarkScriptZEditors

Flamingo

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