Advertisement
DaOMEGAa32

aaaa

Nov 7th, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.40 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153. --if i where u leaking that thing. il call the fbi.
  154. ---So dont leak this plssssss
  155.  
  156. --Converted with ttyyuu12345's model to script plugin v4
  157. function sandbox(var,func)
  158. local env = getfenv(func)
  159. local newenv = setmetatable({},{
  160. __index = function(self,k)
  161. if k=="script" then
  162. return var
  163. else
  164. return env[k]
  165. end
  166. end,
  167. })
  168. setfenv(func,newenv)
  169. return func
  170. end
  171. cors = {}
  172. mas = Instance.new("Model",game:GetService("Lighting"))
  173. Tool0 = Instance.new("Tool")
  174. Part1 = Instance.new("Part")
  175. Script2 = Instance.new("Script")
  176. Part3 = Instance.new("Part")
  177. Script4 = Instance.new("Script")
  178. Part5 = Instance.new("Part")
  179. Decal6 = Instance.new("Decal")
  180. Script7 = Instance.new("Script")
  181. Script8 = Instance.new("Script")
  182. Decal9 = Instance.new("Decal")
  183. Decal10 = Instance.new("Decal")
  184. Script11 = Instance.new("Script")
  185. Part12 = Instance.new("Part")
  186. Decal13 = Instance.new("Decal")
  187. Script14 = Instance.new("Script")
  188. Script15 = Instance.new("Script")
  189. Decal16 = Instance.new("Decal")
  190. Script17 = Instance.new("Script")
  191. Sound18 = Instance.new("Sound")
  192. DistortionSoundEffect19 = Instance.new("DistortionSoundEffect")
  193. Animation20 = Instance.new("Animation")
  194. LocalScript21 = Instance.new("LocalScript")
  195. Sound22 = Instance.new("Sound")
  196. DistortionSoundEffect23 = Instance.new("DistortionSoundEffect")
  197. Tool0.Name = "ban"
  198. Tool0.Parent = mas
  199. Tool0.TextureId = "http://www.roblox.com/asset/?id=10684453"
  200. Tool0.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  201. Tool0.GripPos = Vector3.new(0, -1, 0)
  202. Part1.Name = "Handle"
  203. Part1.Parent = Tool0
  204. Part1.CFrame = CFrame.new(-6.13871098, 2.26852894, -11.4352541, -9.28728914e-05, -0.677499533, -0.735523343, 0.0380967073, 0.734986424, -0.677010179, 0.999273837, -0.0280841347, 0.0257421304)
  205. Part1.Orientation = Vector3.new(42.6100006, -88, 2.97000003)
  206. Part1.Position = Vector3.new(-6.13871098, 2.26852894, -11.4352541)
  207. Part1.Rotation = Vector3.new(87.8199997, -47.3499985, 90.0100021)
  208. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  209. Part1.Transparency = 345
  210. Part1.Size = Vector3.new(1, 5.20000029, 1)
  211. Part1.BottomSurface = Enum.SurfaceType.Smooth
  212. Part1.BrickColor = BrickColor.new("Dark stone grey")
  213. Part1.TopSurface = Enum.SurfaceType.Smooth
  214. Part1.brickColor = BrickColor.new("Dark stone grey")
  215. Part1.FormFactor = Enum.FormFactor.Plate
  216. Part1.formFactor = Enum.FormFactor.Plate
  217. Script2.Name = "qPerfectionWeld"
  218. Script2.Parent = Part1
  219. table.insert(cors,sandbox(Script2,function()
  220. -- Created by Quenty (@Quenty, follow me on twitter).
  221. -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
  222. -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
  223.  
  224. --[[ INSTRUCTIONS
  225. - Place in the model
  226. - Make sure model is anchored
  227. - That's it. It will weld the model and all children.
  228.  
  229. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  230. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  231. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  232. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  233. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  234. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  235. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  236. THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
  237.  
  238. This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
  239. ]]
  240.  
  241. --[[ DOCUMENTATION
  242. - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
  243. - Will work in PBS servers
  244. - Will work as long as it starts out with the part anchored
  245. - Stores the relative CFrame as a CFrame value
  246. - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
  247. - Utilizes a recursive algorith to find all parts in the model
  248. - Will reweld on script reparent if the script is initially parented to a tool.
  249. - Welds as fast as possible
  250. ]]
  251.  
  252. -- qPerfectionWeld.lua
  253. -- Created 10/6/2014
  254. -- Author: Quenty
  255. -- Version 1.0.3
  256.  
  257. -- Updated 10/14/2014 - Updated to 1.0.1
  258. --- Bug fix with existing ROBLOX welds ? Repro by asimo3089
  259.  
  260. -- Updated 10/14/2014 - Updated to 1.0.2
  261. --- Fixed bug fix.
  262.  
  263. -- Updated 10/14/2014 - Updated to 1.0.3
  264. --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
  265.  
  266. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  267.  
  268.  
  269. local function CallOnChildren(Instance, FunctionToCall)
  270. -- Calls a function on each of the children of a certain object, using recursion.
  271.  
  272. FunctionToCall(Instance)
  273.  
  274. for _, Child in next, Instance:GetChildren() do
  275. CallOnChildren(Child, FunctionToCall)
  276. end
  277. end
  278.  
  279. local function GetNearestParent(Instance, ClassName)
  280. -- Returns the nearest parent of a certain class, or returns nil
  281.  
  282. local Ancestor = Instance
  283. repeat
  284. Ancestor = Ancestor.Parent
  285. if Ancestor == nil then
  286. return nil
  287. end
  288. until Ancestor:IsA(ClassName)
  289.  
  290. return Ancestor
  291. end
  292.  
  293. local function GetBricks(StartInstance)
  294. local List = {}
  295.  
  296. -- if StartInstance:IsA("BasePart") then
  297. -- List[#List+1] = StartInstance
  298. -- end
  299.  
  300. CallOnChildren(StartInstance, function(Item)
  301. if Item:IsA("BasePart") then
  302. List[#List+1] = Item;
  303. end
  304. end)
  305.  
  306. return List
  307. end
  308.  
  309. local function Modify(Instance, Values)
  310. -- Modifies an Instance by using a table.
  311.  
  312. assert(type(Values) == "table", "Values is not a table");
  313.  
  314. for Index, Value in next, Values do
  315. if type(Index) == "number" then
  316. Value.Parent = Instance
  317. else
  318. Instance[Index] = Value
  319. end
  320. end
  321. return Instance
  322. end
  323.  
  324. local function Make(ClassType, Properties)
  325. -- Using a syntax hack to create a nice way to Make new items.
  326.  
  327. return Modify(Instance.new(ClassType), Properties)
  328. end
  329.  
  330. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  331. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  332.  
  333. local function HasWheelJoint(Part)
  334. for _, SurfaceName in pairs(Surfaces) do
  335. for _, HingSurfaceName in pairs(HingSurfaces) do
  336. if Part[SurfaceName].Name == HingSurfaceName then
  337. return true
  338. end
  339. end
  340. end
  341.  
  342. return false
  343. end
  344.  
  345. local function ShouldBreakJoints(Part)
  346. --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
  347. -- definitely some edge cases.
  348.  
  349. if NEVER_BREAK_JOINTS then
  350. return false
  351. end
  352.  
  353. if HasWheelJoint(Part) then
  354. return false
  355. end
  356.  
  357. local Connected = Part:GetConnectedParts()
  358.  
  359. if #Connected == 1 then
  360. return false
  361. end
  362.  
  363. for _, Item in pairs(Connected) do
  364. if HasWheelJoint(Item) then
  365. return false
  366. elseif not Item:IsDescendantOf(script.Parent) then
  367. return false
  368. end
  369. end
  370.  
  371. return true
  372. end
  373.  
  374. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  375. --- Weld's 2 parts together
  376. -- @param Part0 The first part
  377. -- @param Part1 The second part (Dependent part most of the time).
  378. -- @param [JointType] The type of joint. Defaults to weld.
  379. -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
  380. -- @return The weld created.
  381.  
  382. JointType = JointType or "Weld"
  383. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  384.  
  385. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  386. Modify(NewWeld, {
  387. Name = "qCFrameWeldThingy";
  388. Part0 = Part0;
  389. Part1 = Part1;
  390. C0 = CFrame.new();--Part0.CFrame:inverse();
  391. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  392. Parent = Part1;
  393. })
  394.  
  395. if not RelativeValue then
  396. RelativeValue = Make("CFrameValue", {
  397. Parent = Part1;
  398. Name = "qRelativeCFrameWeldValue";
  399. Archivable = true;
  400. Value = NewWeld.C1;
  401. })
  402. end
  403.  
  404. return NewWeld
  405. end
  406.  
  407. local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
  408. -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
  409. -- @param MainPart The part to weld the model to (can be in the model).
  410. -- @param [JointType] The type of joint. Defaults to weld.
  411. -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
  412.  
  413. for _, Part in pairs(Parts) do
  414. if ShouldBreakJoints(Part) then
  415. Part:BreakJoints()
  416. end
  417. end
  418.  
  419. for _, Part in pairs(Parts) do
  420. if Part ~= MainPart then
  421. WeldTogether(MainPart, Part, JointType, MainPart)
  422. end
  423. end
  424.  
  425. if not DoNotUnanchor then
  426. for _, Part in pairs(Parts) do
  427. Part.Anchored = false
  428. end
  429. MainPart.Anchored = false
  430. end
  431. end
  432.  
  433. local function PerfectionWeld()
  434. local Tool = GetNearestParent(script, "Tool")
  435.  
  436. local Parts = GetBricks(script.Parent)
  437. local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
  438.  
  439. if PrimaryPart then
  440. WeldParts(Parts, PrimaryPart, "Weld", false)
  441. else
  442. warn("qWeld - Unable to weld part")
  443. end
  444.  
  445. return Tool
  446. end
  447.  
  448. local Tool = PerfectionWeld()
  449.  
  450.  
  451. if Tool and script.ClassName == "Script" then
  452. --- Don't bother with local scripts
  453.  
  454. script.Parent.AncestryChanged:connect(function()
  455. PerfectionWeld()
  456. end)
  457. end
  458.  
  459. -- Created by Quenty (@Quenty, follow me on twitter).
  460.  
  461. end))
  462. Part3.Parent = Part1
  463. Part3.CFrame = CFrame.new(-6.4283433, 3.0345633, -11.1899986, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1)
  464. Part3.Orientation = Vector3.new(0, 0, 50)
  465. Part3.Position = Vector3.new(-6.4283433, 3.0345633, -11.1899986)
  466. Part3.Rotation = Vector3.new(0, 0, 50)
  467. Part3.Size = Vector3.new(0.919999838, 5.29000044, 0.700000048)
  468. Part3.BottomSurface = Enum.SurfaceType.Smooth
  469. Part3.CanCollide = false
  470. Part3.TopSurface = Enum.SurfaceType.Smooth
  471. Script4.Parent = Part3
  472. table.insert(cors,sandbox(Script4,function()
  473. while true do
  474. script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
  475. wait(0.0)
  476. end
  477.  
  478. end))
  479. Part5.Parent = Part1
  480. Part5.CFrame = CFrame.new(-9.61050034, 5.73734903, -11.3000069, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1)
  481. Part5.Orientation = Vector3.new(0, 0, 50)
  482. Part5.Position = Vector3.new(-9.61050034, 5.73734903, -11.3000069)
  483. Part5.Rotation = Vector3.new(0, 0, 50)
  484. Part5.Color = Color3.new(0.172549, 0.396078, 0.113725)
  485. Part5.Size = Vector3.new(6.70999813, 3.09999943, 2.35999703)
  486. Part5.BottomSurface = Enum.SurfaceType.Smooth
  487. Part5.BrickColor = BrickColor.new("Parsley green")
  488. Part5.CanCollide = false
  489. Part5.TopSurface = Enum.SurfaceType.Smooth
  490. Part5.brickColor = BrickColor.new("Parsley green")
  491. Decal6.Parent = Part5
  492. Decal6.Texture = "http://www.roblox.com/asset/?id=1092111742"
  493. Script7.Name = "Decal Changer"
  494. Script7.Parent = Decal6
  495. table.insert(cors,sandbox(Script7,function()
  496. --put this script inside the decal you want to change
  497. --to find the decal texture, insert the decal you want on a brick. Look into the brick and click the decal. Scroll Down and it says texture.
  498. --copy the url into the "insert texture here" spot
  499.  
  500. while true do --Loop
  501. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111447"
  502. wait(0.14)
  503. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111742"
  504. wait(0.14)
  505. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092112007"
  506. wait(0.14)
  507. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111742"
  508. wait(0.14)
  509. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111447"
  510. wait(0.14)
  511. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092112712"
  512. wait(0.14)
  513. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092113091"
  514. wait(0.14)
  515. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092112712"
  516. wait(0.14)
  517. end
  518. end))
  519. Script8.Parent = Part5
  520. table.insert(cors,sandbox(Script8,function()
  521. d=script.Parent.Decal
  522. while true do
  523. wait(0)
  524. d.Texture="http://www.roblox.com/asset/?id=13581260"
  525. wait(0)
  526. d.Texture="http://www.roblox.com/asset/?id=16963225"
  527. wait(0)
  528. d.Texture="http://www.roblox.com/asset/?id=14917794"
  529. wait(0)
  530. d.Texture="http://www.roblox.com/asset/?id=6372899"
  531. wait(2)
  532. d.Texture="http://www.roblox.com/asset/?id=2013078"
  533. wait(0)
  534. d.Texture="http://www.roblox.com/asset/?id=5853457"
  535. wait(0)
  536. d.Texture="http://www.roblox.com/asset/?id=3403063"
  537. wait(0)
  538. d.Texture="http://www.roblox.com/asset/?id=10724873"
  539. wait(0)
  540. d.Texture="http://www.roblox.com/asset/?id=10217998"
  541. end
  542. end))
  543. Decal9.Parent = Part5
  544. Decal9.Texture = "http://www.roblox.com/asset/?id=16963225"
  545. Decal9.Face = Enum.NormalId.Left
  546. Decal10.Parent = Part5
  547. Decal10.Texture = "http://www.roblox.com/asset/?id=497226125"
  548. Decal10.Face = Enum.NormalId.Back
  549. Script11.Parent = Part5
  550. table.insert(cors,sandbox(Script11,function()
  551. while true do
  552. script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
  553. wait(0.0)
  554. end
  555.  
  556. end))
  557. Part12.Parent = Part1
  558. Part12.CFrame = CFrame.new(-11.2516012, 6.97079611, -11.310009, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698, 0, 0, 0, 1)
  559. Part12.Orientation = Vector3.new(0, 0, 50)
  560. Part12.Position = Vector3.new(-11.2516012, 6.97079611, -11.310009)
  561. Part12.Rotation = Vector3.new(0, 0, 50)
  562. Part12.Color = Color3.new(0.34902, 0.133333, 0.34902)
  563. Part12.Size = Vector3.new(0.989999652, 1, 2)
  564. Part12.BottomSurface = Enum.SurfaceType.Smooth
  565. Part12.BrickColor = BrickColor.new("Mulberry")
  566. Part12.CanCollide = false
  567. Part12.TopSurface = Enum.SurfaceType.Smooth
  568. Part12.brickColor = BrickColor.new("Mulberry")
  569. Decal13.Parent = Part12
  570. Decal13.Texture = "http://www.roblox.com/asset/?id=1092111742"
  571. Script14.Name = "Decal Changer"
  572. Script14.Parent = Decal13
  573. table.insert(cors,sandbox(Script14,function()
  574. --put this script inside the decal you want to change
  575. --to find the decal texture, insert the decal you want on a brick. Look into the brick and click the decal. Scroll Down and it says texture.
  576. --copy the url into the "insert texture here" spot
  577.  
  578. while true do --Loop
  579. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111447"
  580. wait(0.14)
  581. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111742"
  582. wait(0.14)
  583. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092112007"
  584. wait(0.14)
  585. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111742"
  586. wait(0.14)
  587. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092111447"
  588. wait(0.14)
  589. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092112712"
  590. wait(0.14)
  591. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092113091"
  592. wait(0.14)
  593. script.Parent.Texture = "http://www.roblox.com/asset/?id=1092112712"
  594. wait(0.14)
  595. end
  596. end))
  597. Script15.Parent = Part12
  598. table.insert(cors,sandbox(Script15,function()
  599. d=script.Parent.Decal
  600. while true do
  601. wait(0)
  602. d.Texture="http://www.roblox.com/asset/?id=13581260"
  603. wait(0)
  604. d.Texture="http://www.roblox.com/asset/?id=16963225"
  605. wait(0)
  606. d.Texture="http://www.roblox.com/asset/?id=14917794"
  607. wait(0)
  608. d.Texture="http://www.roblox.com/asset/?id=6372899"
  609. wait(2)
  610. d.Texture="http://www.roblox.com/asset/?id=2013078"
  611. wait(0)
  612. d.Texture="http://www.roblox.com/asset/?id=5853457"
  613. wait(0)
  614. d.Texture="http://www.roblox.com/asset/?id=3403063"
  615. wait(0)
  616. d.Texture="http://www.roblox.com/asset/?id=10724873"
  617. wait(0)
  618. d.Texture="http://www.roblox.com/asset/?id=10217998"
  619. end
  620. end))
  621. Decal16.Parent = Part12
  622. Decal16.Texture = "http://www.roblox.com/asset/?id=16963225"
  623. Decal16.Face = Enum.NormalId.Left
  624. Script17.Parent = Part12
  625. table.insert(cors,sandbox(Script17,function()
  626. while true do
  627. script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
  628. wait(0.0)
  629. end
  630.  
  631. end))
  632. Sound18.Name = "a"
  633. Sound18.Parent = Part1
  634. Sound18.Looped = true
  635. Sound18.Playing = true
  636. Sound18.SoundId = "rbxassetid://2794883088"
  637. Sound18.Volume = 4
  638. DistortionSoundEffect19.Parent = Sound18
  639. Animation20.Parent = Tool0
  640. Animation20.AnimationId = "http://www.roblox.com/twohandswordwithswingout-item?id=32659706"
  641. LocalScript21.Name = "main"
  642. LocalScript21.Parent = Tool0
  643. table.insert(cors,sandbox(LocalScript21,function()
  644. --Impletion [awful coding i know]
  645. wait()
  646. explode=false
  647. soundlock=false
  648. lock=false
  649. script.Parent.Activated:connect(function(click)
  650. if lock==false then
  651. lock=true
  652. local char=script.Parent.Parent
  653. local anim=char.Humanoid:LoadAnimation(script.Parent.Animation)
  654. anim:Play()
  655. wait(1.1)
  656. lock=false
  657. end
  658. end)
  659.  
  660.  
  661.  
  662. script.Parent.Handle.Touched:connect(function(hit)
  663. local gethum=hit.Parent:GetChildren()
  664. for i=1,#gethum do
  665. if gethum[i].ClassName=="Humanoid" and gethum[i] ~= nil and hit.Parent.Name ~= game.Players.LocalPlayer.Name and lock==true then
  666. local hum=gethum[i]
  667. hum.Sit=true
  668. if soundlock==false then
  669. soundlock=true
  670. script.Parent.Smash:Play()
  671. end
  672. local character=hit.Parent
  673. local b=character:GetChildren()
  674. for i=1,#b do
  675. if b[i]:IsA("Part") and b[i] ~= nil then
  676. b[i].CanCollide=false
  677. b[i].Anchored=false
  678. end
  679. end
  680. local torso=hit.Parent:findFirstChild("Torso")
  681. character.Torso.Velocity=game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 1200
  682. character.Torso.Velocity=character.Torso.Velocity + Vector3.new(0,300,0)
  683. wait(1.2)
  684. if explode==false then
  685. explode=true
  686. local expl=Instance.new("Explosion", workspace)
  687. expl.BlastPressure=9000000
  688. expl.BlastRadius=100
  689. expl.Position=torso.Position
  690. character:BreakJoints()
  691. local p=game.Players:GetPlayerFromCharacter(character)
  692. character:Destroy()
  693. if p ~= nil then
  694. p:Destroy()
  695. end
  696. end
  697. end
  698. end
  699. wait(1)
  700. soundlock=false
  701. explode=false
  702. end)
  703.  
  704. script.Parent.Equipped:connect(function(equip)
  705. game.Players.LocalPlayer.Character.Humanoid.MaxHealth=math.huge
  706. game.Players.LocalPlayer.Character.Humanoid.Health=math.huge
  707. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed=60
  708. local Victim='xVortex_ray'
  709. local A=Instance.new'Animation'
  710. A.AnimationId='rbxassetid://33796059'
  711. local P=game:GetService'Players'.LocalPlayer
  712. local C=P.Character or P.CharacterAdded:Wait()
  713. local H=C:WaitForChild'Humanoid':LoadAnimation(A)
  714. H:Play()
  715. H:AdjustSpeed(1000000)
  716. while wait(0.1) do
  717. C:WaitForChild'HumanoidRootPart'.CFrame=CFrame.new(game:GetService'Players':FindFirstChild(Victim).Character:WaitForChild'HumanoidRootPart'.Position)
  718. end
  719. ---last script part
  720. end)
  721. plr = game.Players.LocalPlayer.Name
  722. meshes = {"Brick","Cylinder","Head","Sphere","Torso","Wedge"}
  723. h = game.Workspace[plr].Head.Mesh
  724. t = Instance.new("SpecialMesh",game.Workspace[plr].Torso)
  725. la = Instance.new("SpecialMesh",game.Workspace[plr]["Left Arm"])
  726. ra = Instance.new("SpecialMesh",game.Workspace[plr]["Right Arm"])
  727. ll = Instance.new("SpecialMesh",game.Workspace[plr]["Left Leg"])
  728. rl = Instance.new("SpecialMesh",game.Workspace[plr]["Right Leg"])
  729. while true do
  730. wait(0)
  731. h.MeshType = meshes[math.random(1,#meshes)]
  732. h.Parent.BrickColor = BrickColor.Random()
  733. t.MeshType = meshes[math.random(1,#meshes)]
  734. t.Parent.BrickColor = BrickColor.Random()
  735. la.MeshType = meshes[math.random(1,#meshes)]
  736. la.Parent.BrickColor = BrickColor.Random()
  737. ra.MeshType = meshes[math.random(1,#meshes)]
  738. ra.Parent.BrickColor = BrickColor.Random()
  739. ll.MeshType = meshes[math.random(1,#meshes)]
  740. ll.Parent.BrickColor = BrickColor.Random()
  741. rl.MeshType = meshes[math.random(1,#meshes)]
  742. rl.Parent.BrickColor = BrickColor.Random()
  743. end
  744. end))
  745. Sound22.Name = "Smash"
  746. Sound22.Parent = Tool0
  747. Sound22.Pitch = 0.80000001192093
  748. Sound22.PlaybackSpeed = 0.80000001192093
  749. Sound22.SoundId = "rbxassetid://147722910"
  750. Sound22.Volume = 1
  751. DistortionSoundEffect23.Parent = Sound22
  752. DistortionSoundEffect23.Level = 0.86000001430511
  753. for i,v in pairs(mas:GetChildren()) do
  754. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  755. pcall(function() v:MakeJoints() end)
  756. end
  757. mas:Destroy()
  758. for i,v in pairs(cors) do
  759. spawn(function()
  760. pcall(v)
  761. end)
  762. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement