DarkScriptZEditors

Untitled

Jan 9th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.02 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.  
  137. user = "SincereProdeadZ"
  138.  
  139. maincolor = "Black" -- this is the main color of your dragon
  140. secondcolor = "Bright red" -- this is the color of the details
  141.  
  142. m = Instance.new("Model")
  143. m.Parent = game.Players[user].Character
  144. m.Name = "Dragon -- Neeps Soul/Gaurdian"
  145.  
  146. script.Parent = m
  147. script.Name = user .. "'s Pet Dragon"
  148. FloatingOnUser = true
  149. Carrying = false
  150.  
  151. torso = game.Players[user].Character:findFirstChild("Torso")
  152. they = 0
  153.  
  154. he = Instance.new("Part")
  155. he.Parent = m
  156. he.Name = "Head"
  157. he.formFactor = ("Symmetric")
  158. he.Size = Vector3.new(2,2,2)
  159. he.BrickColor = BrickColor.new(maincolor)
  160. he.Anchored = false
  161. he.CanCollide = false
  162. he.Locked = true
  163. he.TopSurface = ("Smooth")
  164. he.BottomSurface = ("Smooth")
  165. he.Position = torso.Position
  166. hem = Instance.new("SpecialMesh")
  167. hem.Parent = he
  168. hem.MeshType = ("Brick")
  169. hem.Scale = Vector3.new(1.4,1,2)
  170.  
  171. tor = Instance.new("Part")
  172. tor.Parent = m
  173. tor.Name = "Torso"
  174. tor.formFactor = ("Symmetric")
  175. tor.Size = Vector3.new(2,2,2)
  176. tor.BrickColor = BrickColor.new(maincolor)
  177. tor.Anchored = false
  178. tor.CanCollide = false
  179. tor.Locked = true
  180. tor.TopSurface = ("Smooth")
  181. tor.BottomSurface = ("Smooth")
  182. tor.Position = torso.Position
  183. torm = Instance.new("SpecialMesh")
  184. torm.Parent = tor
  185. torm.MeshType = ("Brick")
  186. torm.Scale = Vector3.new(2,1.2,4.5)
  187.  
  188. w = Instance.new("Motor")
  189. w.Parent = tor
  190. w.Name = "MainWeld"
  191. w.Part0 = tor
  192. w.Part1 = he
  193. w.C0 = CFrame.new(0,1,-4.5)
  194.  
  195. m:MakeJoints()
  196.  
  197. function Del(E, T)
  198. wait(T)
  199. E:remove()
  200. end
  201. hu = Instance.new("Humanoid")
  202. hu.Parent = m
  203. hu.Name = "Humanoid"
  204. hu.PlatformStand = true
  205. hu.MaxHealth = MathHuge
  206. coroutine.resume(coroutine.create(Del), hin, 8)
  207. floaty = Instance.new("BodyPosition")
  208. floaty.Parent = tor
  209. floaty.Name = "FloatyPosition"
  210. floaty.maxForce = Vector3.new(0,math.huge,0)
  211. floaty.position = torso.Position + Vector3.new(0,6,0)
  212. stablizer = Instance.new("BodyGyro")
  213. stablizer.Parent = tor
  214. stablizer.cframe = torso.CFrame
  215. stablizer.D = 100
  216.  
  217.  
  218. -----[[Other Parts]]--------------------------------------------------
  219.  
  220. --[[Eyez]]----------------------
  221. eye1 = Instance.new("Part")
  222. eye1.Parent = m
  223. eye1.Name = "Right Eye"
  224. eye1.formFactor = ("Symmetric")
  225. eye1.Size = Vector3.new(1,1,1)
  226. eye1.BrickColor = BrickColor.new(secondcolor)
  227. eye1.Anchored = false
  228. eye1.CanCollide = false
  229. eye1.Locked = true
  230. eye1.TopSurface = ("Smooth")
  231. eye1.BottomSurface = ("Smooth")
  232. eye1.Position = torso.Position
  233. eye1.Reflectance = 0.15
  234. eye1m = Instance.new("BlockMesh")
  235. eye1m.Parent = eye1
  236. eye1m.Scale = Vector3.new(0.7,0.3,0.5)
  237. eye1w = Instance.new("Motor")
  238. eye1w.Parent = he
  239. eye1w.Name = "Eye1Weld"
  240. eye1w.Part0 = he
  241. eye1w.Part1 = eye1
  242. eye1w.C0 = CFrame.new(0.6,0.3,-1.8) * CFrame.Angles(0,0,0.4)
  243.  
  244. eye2 = Instance.new("Part")
  245. eye2.Parent = m
  246. eye2.Name = "Left Eye"
  247. eye2.formFactor = ("Symmetric")
  248. eye2.Size = Vector3.new(1,1,1)
  249. eye2.BrickColor = BrickColor.new(secondcolor)
  250. eye2.Anchored = false
  251. eye2.CanCollide = false
  252. eye2.Locked = true
  253. eye2.TopSurface = ("Smooth")
  254. eye2.BottomSurface = ("Smooth")
  255. eye2.Position = torso.Position
  256. eye2.Reflectance = 0.15
  257. eye2m = Instance.new("BlockMesh")
  258. eye2m.Parent = eye2
  259. eye2m.Scale = Vector3.new(0.7,0.3,0.5)
  260. eye2w = Instance.new("Motor")
  261. eye2w.Parent = he
  262. eye2w.Name = "Eye2Weld"
  263. eye2w.Part0 = he
  264. eye2w.Part1 = eye2
  265. eye2w.C0 = CFrame.new(-0.6,0.3,-1.8) * CFrame.Angles(0,0,-0.4)
  266. --------------
  267.  
  268. ----[[Head Spike]]----------------
  269. spike = Instance.new("Part")
  270. spike.Parent = m
  271. spike.Name = "Head Spike"
  272. spike.formFactor = ("Symmetric")
  273. spike.Size = Vector3.new(1,1,1)
  274. spike.BrickColor = BrickColor.new(secondcolor)
  275. spike.Anchored = false
  276. spike.CanCollide = false
  277. spike.Locked = true
  278. spike.TopSurface = ("Smooth")
  279. spike.BottomSurface = ("Smooth")
  280. spike.Position = torso.Position
  281. spike.Reflectance = 0.15
  282. spikem = Instance.new("SpecialMesh")
  283. spikem.Parent = spike
  284. spikem.MeshType = ("Wedge")
  285. spikem.Scale = Vector3.new(0.3,0.5,2)
  286. spikew = Instance.new("Motor")
  287. spikew.Parent = he
  288. spikew.Name = "HeadSpikeWeld"
  289. spikew.Part0 = he
  290. spikew.Part1 = spike
  291. spikew.C0 = CFrame.new(0,1.25,0) * CFrame.Angles(0,0,0)
  292. -------------
  293.  
  294.  
  295. ----[[Torso Line]]----------------------------------
  296. line = Instance.new("Part")
  297. line.Parent = m
  298. line.Name = "Torso Line"
  299. line.formFactor = ("Symmetric")
  300. line.Size = Vector3.new(1,1,1)
  301. line.BrickColor = BrickColor.new(secondcolor)
  302. line.Anchored = false
  303. line.CanCollide = false
  304. line.Locked = true
  305. line.TopSurface = ("Smooth")
  306. line.BottomSurface = ("Smooth")
  307. line.Position = torso.Position
  308. line.Reflectance = 0.15
  309. linem = Instance.new("SpecialMesh")
  310. linem.Parent = line
  311. linem.MeshType = ("Head")
  312. linem.Scale = Vector3.new(1.2,7.42,1.2)
  313. linew = Instance.new("Motor")
  314. linew.Parent = tor
  315. linew.Name = "TorsoLineWeld"
  316. linew.Part0 = tor
  317. linew.Part1 = line
  318. linew.C0 = CFrame.new(0,0.635,0.8) * CFrame.Angles(math.pi/2,0,0)
  319. -----------------
  320.  
  321. --[[Right Wing]]-------------------
  322. posx = 0
  323. posy = 0
  324. posz = 0
  325. scalex = 0
  326. scalez = 0
  327. wm = Instance.new("Model")
  328. wm.Parent = m
  329. wm.Name = "Right Wing"
  330. for i = 1, 6 do
  331. wing = Instance.new("Part")
  332. wing.Parent = wm
  333. if i == 1 then
  334. wing.Name = "WingMain"
  335. else
  336. wing.Name = "WingPart"
  337. end
  338. wing.formFactor = ("Symmetric")
  339. wing.Size = Vector3.new(1,1,1)
  340. wing.BrickColor = BrickColor.new(maincolor)
  341. wing.Anchored = false
  342. wing.CanCollide = false
  343. wing.Locked = true
  344. wing.TopSurface = ("Smooth")
  345. wing.BottomSurface = ("Smooth")
  346. wing.Position = torso.Position
  347. wingm = Instance.new("SpecialMesh")
  348. wingm.Parent = wing
  349. wingm.MeshType = ("Brick")
  350. wingm.Scale = Vector3.new(2+scalex,1.2,3.5+scalez)
  351. if i == 1 then
  352. wingw = Instance.new("Motor")
  353. wingw.Parent = tor
  354. wingw.Name = "RightWingWeld"
  355. wingw.MaxVelocity = 0.02
  356. wingw.Part0 = tor
  357. wingw.Part1 = wing
  358. wingw.C0 = CFrame.new(2.2,0.2,-1) * CFrame.Angles(0,0,0.4)
  359. else
  360. wingw = Instance.new("Motor")
  361. wingw.Parent = wm:findFirstChild("WingMain")
  362. wingw.Name = "WingWeld"
  363. wingw.Part0 = wingw.Parent
  364. wingw.Part1 = wing
  365. wingw.C0 = CFrame.new(posx,posy,posz)
  366. end
  367. if i == 6 then
  368. wspike = Instance.new("Part")
  369. wspike.Parent = wm
  370. wspike.Name = "RightWingSpike"
  371. wspike.formFactor = ("Symmetric")
  372. wspike.Size = Vector3.new(1,1,1)
  373. wspike.BrickColor = BrickColor.new(maincolor)
  374. wspike.Anchored = false
  375. wspike.CanCollide = false
  376. wspike.Locked = true
  377. wspike.TopSurface = ("Smooth")
  378. wspike.BottomSurface = ("Smooth")
  379. wspike.Position = torso.Position
  380. wspike.Reflectance = 0
  381. wspikem = Instance.new("SpecialMesh")
  382. wspikem.Parent = wspike
  383. wspikem.MeshType = ("Wedge")
  384. wspikem.Scale = Vector3.new(0.7+scalex,0.8,1.2)
  385. wspikew = Instance.new("Motor")
  386. wspikew.Parent = wing
  387. wspikew.Name = "WingSpikeWeld"
  388. wspikew.Part0 = wing
  389. wspikew.Part1 = wspike
  390. wspikew.C0 = CFrame.new(0,0,wingm.Scale.z/1.7) * CFrame.Angles(0,math.pi,0)
  391. end
  392. posz = posz + i/3
  393. if i ~= 5 then
  394. posx = posx + 0.8
  395. else
  396. posx = posx + 0.5
  397. end
  398. scalex = scalex - 0.25
  399. if i ~= 5 then
  400. scalez = scalez + 0.4
  401. else
  402. scalez = scalez + 1.2
  403. end
  404. end
  405. -------------
  406.  
  407.  
  408. --[[Left Wing]]-------------------
  409. posx = 0
  410. posy = 0
  411. posz = 0
  412. scalex = 0
  413. scalez = 0
  414. wm2 = Instance.new("Model")
  415. wm2.Parent = m
  416. wm2.Name = "Left Wing"
  417. for i = 1, 6 do
  418. wing = Instance.new("Part")
  419. wing.Parent = wm2
  420. if i == 1 then
  421. wing.Name = "WingMain"
  422. else
  423. wing.Name = "WingPart"
  424. end
  425. wing.formFactor = ("Symmetric")
  426. wing.Size = Vector3.new(1,1,1)
  427. wing.BrickColor = BrickColor.new(maincolor)
  428. wing.Anchored = false
  429. wing.CanCollide = false
  430. wing.Locked = true
  431. wing.TopSurface = ("Smooth")
  432. wing.BottomSurface = ("Smooth")
  433. wing.Position = torso.Position
  434. wingm = Instance.new("SpecialMesh")
  435. wingm.Parent = wing
  436. wingm.MeshType = ("Brick")
  437. wingm.Scale = Vector3.new(2+scalex,1.2,3.5+scalez)
  438. if i == 1 then
  439. wingw = Instance.new("Motor")
  440. wingw.Parent = tor
  441. wingw.Name = "LeftWingWeld"
  442. wingw.MaxVelocity = 0.02
  443. wingw.Part0 = tor
  444. wingw.Part1 = wing
  445. wingw.C0 = CFrame.new(-2.2,0.2,-1) * CFrame.Angles(0,0,-0.4)
  446. else
  447. wingw = Instance.new("Motor")
  448. wingw.Parent = wm2:findFirstChild("WingMain")
  449. wingw.Name = "WingWeld"
  450. wingw.Part0 = wingw.Parent
  451. wingw.Part1 = wing
  452. wingw.C0 = CFrame.new(posx,posy,posz)
  453. end
  454. if i == 6 then
  455. wspike = Instance.new("Part")
  456. wspike.Parent = wm2
  457. wspike.Name = "LeftWingSpike"
  458. wspike.formFactor = ("Symmetric")
  459. wspike.Size = Vector3.new(1,1,1)
  460. wspike.BrickColor = BrickColor.new(maincolor)
  461. wspike.Anchored = false
  462. wspike.CanCollide = false
  463. wspike.Locked = true
  464. wspike.TopSurface = ("Smooth")
  465. wspike.BottomSurface = ("Smooth")
  466. wspike.Position = torso.Position
  467. wspike.Reflectance = 0
  468. wspikem = Instance.new("SpecialMesh")
  469. wspikem.Parent = wspike
  470. wspikem.MeshType = ("Wedge")
  471. wspikem.Scale = Vector3.new(0.7+scalex,0.8,1.2)
  472. wspikew = Instance.new("Motor")
  473. wspikew.Parent = wing
  474. wspikew.Name = "WingSpikeWeld"
  475. wspikew.Part0 = wing
  476. wspikew.Part1 = wspike
  477. wspikew.C0 = CFrame.new(0,0,wingm.Scale.z/1.7) * CFrame.Angles(0,math.pi,0)
  478. end
  479. posz = posz + i/3
  480. if i ~= 5 then
  481. posx = posx - 0.8
  482. else
  483. posx = posx - 0.5
  484. end
  485. scalex = scalex - 0.25
  486. if i ~= 5 then
  487. scalez = scalez + 0.4
  488. else
  489. scalez = scalez + 1.2
  490. end
  491. end
  492. -----------------
  493.  
  494.  
  495. --[[Tail]]--------------------------------
  496. posx = 0
  497. posy = 0
  498. posz = 0
  499. scalex = 0
  500. scalez = 0
  501. anglezor = 0
  502. tm = Instance.new("Model")
  503. tm.Parent = m
  504. tm.Name = "Tail"
  505. for i = 1, 6 do
  506. tail = Instance.new("Part")
  507. tail.Parent = tm
  508. if i == 1 then
  509. tail.Name = "TailMain"
  510. else
  511. tail.Name = "TailPart"
  512. end
  513. tail.formFactor = ("Symmetric")
  514. tail.Size = Vector3.new(1,1,1)
  515. tail.BrickColor = BrickColor.new(maincolor)
  516. tail.Anchored = false
  517. tail.CanCollide = false
  518. tail.Locked = true
  519. tail.TopSurface = ("Smooth")
  520. tail.BottomSurface = ("Smooth")
  521. tail.Position = torso.Position
  522. tailm = Instance.new("SpecialMesh")
  523. tailm.Parent = tail
  524. tailm.MeshType = ("Brick")
  525. tailm.Scale = Vector3.new(2.2+scalex,1.2,1.7+scalez)
  526. if i == 1 then
  527. tailw = Instance.new("Motor")
  528. tailw.Parent = tor
  529. tailw.Name = "TailWeld"
  530. tailw.MaxVelocity = 0.01
  531. tailw.Part0 = tor
  532. tailw.Part1 = tail
  533. tailw.C0 = CFrame.new(0,0.3,5) * CFrame.Angles(-0.3,0,0)
  534. else
  535. tailw = Instance.new("Motor")
  536. tailw.Parent = tm:findFirstChild("TailMain")
  537. tailw.Name = "TailWeld"
  538. tailw.Part0 = tailw.Parent
  539. tailw.Part1 = tail
  540. tailw.C0 = CFrame.new(posx,posy,posz) * CFrame.Angles(-anglezor,0,0)
  541. end
  542. if i == 6 then
  543. tspike = Instance.new("Part")
  544. tspike.Parent = tm
  545. tspike.Name = "TailSpike"
  546. tspike.formFactor = ("Symmetric")
  547. tspike.Size = Vector3.new(1,1,1)
  548. tspike.BrickColor = BrickColor.new(maincolor)
  549. tspike.Anchored = false
  550. tspike.CanCollide = false
  551. tspike.Locked = true
  552. tspike.TopSurface = ("Smooth")
  553. tspike.BottomSurface = ("Smooth")
  554. tspike.Position = torso.Position
  555. tspike.Reflectance = 0
  556. tspikem = Instance.new("SpecialMesh")
  557. tspikem.Parent = tspike
  558. tspikem.MeshType = ("Wedge")
  559. tspikem.Scale = Vector3.new(2+scalex,1,1.5+scalez)
  560. tspikew = Instance.new("Motor")
  561. tspikew.Parent = tail
  562. tspikew.Name = "TailSpikeWeld"
  563. tspikew.Part0 = tail
  564. tspikew.Part1 = tspike
  565. tspikew.C0 = CFrame.new(0,0,tailm.Scale.z/1.2) * CFrame.Angles(0,math.pi,0)
  566. end
  567. if i < 3 then
  568. posy = posy + 0.13
  569. posz = posz + 1
  570. elseif i > 6 then
  571. posy = posy + 0.1
  572. posz = posz + 1
  573. else
  574. posy = posy + 0.4
  575. posz = posz + 0.8
  576. end
  577. anglezor = anglezor + 0.12
  578. end
  579.  
  580. rightwing = tor:findFirstChild("RightWingWeld")
  581. leftwing = tor:findFirstChild("LeftWingWeld")
  582. tail = tor:findFirstChild("TailWeld")
  583.  
  584. m:MakeJoints()
  585.  
  586. vip = game.Players[user]
  587.  
  588. function Chat(msg)
  589. if string.sub(msg, 1, 8) == "Dragon, " then
  590.  
  591. if string.find(msg, "remove") then
  592. if string.find(msg, "your") then
  593. if string.find(msg, "self") then
  594. if torso:findFirstChild("Floaty") ~= nil then
  595. torso.Floaty:remove()
  596. end
  597. m:remove()
  598. end
  599. end
  600. end
  601.  
  602. if string.find(msg, "kill") then
  603. c = game.Players:GetChildren()
  604. for blawg = 1, #c do
  605. if string.find(msg, c[blawg].Name) then
  606. c[blawg].Character:BreakJoints()
  607. else
  608. wait()
  609. end
  610. end
  611. end
  612.  
  613. if string.find(msg, "grip staff") then
  614. a = game:GetService("InsertService"):LoadAsset(33495147)
  615. a.Parent = game.Workspace
  616. a:MoveTo(game.Workspace[vip.Name].Torso.Position)
  617. end
  618.  
  619. if string.find(msg, "insert") then
  620. g = game:GetService("InsertService"):LoadAsset(23391377)
  621. g.Parent = game.Workspace
  622. g:MoveTo(game.Workspace[vip.Name].Torso.Position)
  623. end
  624.  
  625. if string.find(msg, "carry") then
  626. if tor:findFirstChild("Floaty") ~= nil then
  627. wait()
  628. else
  629. FloatingOnUser = false
  630. Carrying = true
  631. floaty2 = floaty:Clone()
  632. floaty2.Parent = torso
  633. floaty2.Name = "Floaty"
  634. torso.CFrame = torso.CFrame + Vector3.new(0,7,0)
  635. while Carrying == true do
  636. leftwing.DesiredAngle = 0.9
  637. rightwing.DesiredAngle = -0.9
  638. for i = 1, 22 do
  639. if Carrying == true then
  640. floaty2.position = torso.Position + Vector3.new(0,1.4,0)
  641. tor.CFrame = torso.CFrame + Vector3.new(0,-3,0)
  642. floaty.position = torso.Position + Vector3.new(0,-3,0)
  643. wait(0.05)
  644. end
  645. end
  646. leftwing.DesiredAngle = -0.3
  647. rightwing.DesiredAngle = 0.3
  648. for iii = 1, 22 do
  649. if Carrying == true then
  650. floaty2.position = torso.Position + Vector3.new(0,-1.4,0)
  651. tor.CFrame = torso.CFrame + Vector3.new(0,-5,0)
  652. floaty.position = torso.Position + Vector3.new(0,-5,0)
  653. wait(0.05)
  654. end
  655. end
  656. end
  657. end
  658. end
  659.  
  660. if string.find(msg, "drop") then
  661. if torso:findFirstChild("Floaty") ~= nil then
  662. torso:findFirstChild("Floaty"):remove()
  663. Carrying = false
  664. FloatingOnUser = true
  665. torso.CFrame = torso.CFrame - Vector3.new(0,5,0)
  666. while FloatingOnUser == true do
  667. leftwing.DesiredAngle = 0.9
  668. rightwing.DesiredAngle = -0.9
  669. for i = 1, 22 do
  670. if FloatingOnUser == true then
  671. tor.CFrame = torso.CFrame + Vector3.new(0,6+they,0)
  672. floaty.position = torso.Position + Vector3.new(0,6+they,0)
  673. they = they + 0.1
  674. wait(0.05)
  675. end
  676. end
  677. leftwing.DesiredAngle = -0.3
  678. rightwing.DesiredAngle = 0.3
  679. for iii = 1, 22 do
  680. if FloatingOnUser == true then
  681. tor.CFrame = torso.CFrame + Vector3.new(0,6+they,0)
  682. floaty.position = torso.Position + Vector3.new(0,6+they,0)
  683. they = they - 0.1
  684. wait(0.05)
  685. end
  686. end
  687. end
  688. end
  689. end
  690.  
  691. if string.find(msg, "stabilize") then
  692. floaty.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  693. wait(1.2)
  694. floaty.maxForce = Vector3.new(0,math.huge,0)
  695. end
  696.  
  697. if string.find(msg, "tornado") then
  698. local NowPos = Vector3.new(0,0,0)
  699. local M = Instance.new("Model")
  700. local hight = 10
  701. local bricksincolom = 3
  702. local randomnes = 5
  703. M.Parent = game.Workspace
  704. M.Name = "Tornado"
  705. function touch(hit,block)
  706. if hit:FindFirstChild("BodyPosition") then return end
  707. hit:BreakJoints()
  708. bp = Instance.new("BodyPosition")
  709. bp.Parent = hit
  710. pow = hit:GetMass()*999
  711. bp.maxForce = Vector3.new(pow,pow,pow)
  712. while true do
  713. bp.position = block.Position
  714. wait(0.1)
  715. end
  716. end
  717. for i = 1,hight do
  718. for x = 1,bricksincolom do
  719. p = Instance.new("Part")
  720. p.Parent = M
  721. p.Size = Vector3.new(10,10,10)
  722. p.CanCollide = false
  723. p.Transparency = 0.4
  724. p.Name = i
  725. p.BrickColor = BrickColor.new("White")
  726. p.TopSurface = "Smooth"
  727. p.BottomSurface = "Smooth"
  728. bp = Instance.new("BodyPosition")
  729. bp.Parent = p
  730. pow = p:GetMass()*999
  731. bp.maxForce = Vector3.new(pow,pow,pow)
  732. p.Touched:connect(function(hit) touch(hit,p) end)
  733. end
  734. end
  735. coroutine.resume(coroutine.create(function()
  736. while true do
  737. NowPos = NowPos+Vector3.new(math.random(-randomnes,randomnes),0,math.random(-randomnes,randomnes))
  738. for i,v in pairs(M:GetChildren()) do
  739. v:BreakJoints()
  740. n = tonumber(v.Name)*randomnes
  741. v.BodyPosition.position = NowPos+Vector3.new(math.random(-n,n),tonumber(v.Name)*v.Size.y,math.random(-n,n))
  742. wait(0.1)
  743. end
  744. wait(0.1)
  745. end
  746. end))
  747. end
  748. end
  749. end
  750. vip.Chatted:connect(Chat)
  751.  
  752. while FloatingOnUser == true do
  753. leftwing.DesiredAngle = 0.9
  754. rightwing.DesiredAngle = -0.9
  755. for i = 1, 22 do
  756. if FloatingOnUser == true then
  757. tor.CFrame = torso.CFrame + Vector3.new(0,6+they,0)
  758. floaty.position = torso.Position + Vector3.new(0,6+they,0)
  759. they = they + 0.1
  760. wait(0.05)
  761. end
  762. end
  763. leftwing.DesiredAngle = -0.3
  764. rightwing.DesiredAngle = 0.3
  765. for iii = 1, 22 do
  766. if FloatingOnUser == true then
  767. tor.CFrame = torso.CFrame + Vector3.new(0,6+they,0)
  768. floaty.position = torso.Position + Vector3.new(0,6+they,0)
  769. they = they - 0.1
  770. wait(0.05)
  771. end
  772. end
  773. end
Add Comment
Please, Sign In to add comment