Advertisement
ManlyMemeScripter

Something

Apr 14th, 2018
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.30 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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. gui1=Instance.new("BillboardGui")
  8. gui1.Parent= game.Players.LocalPlayer.Character.Head
  9. gui1.Adornee= game.Players.LocalPlayer.Character.Head
  10. gui1.Size=UDim2.new(30,25,30,30)
  11. gui1.StudsOffset=Vector3.new(0,0,0)
  12. gui1.AlwaysOnTop = false
  13. text1=Instance.new("ImageLabel")
  14. text1.Image = "http://www.roblox.com/asset/?id=540371958" --[[Face Image Source (If you wish to change the face to a different decal put it in there]]
  15. text1.Size=UDim2.new(1,0,1,0)
  16. text1.Position=UDim2.new(0,0,0,0)
  17. text1.BackgroundTransparency = 1
  18. text1.Parent=gui1
  19.  
  20. --Ugh,BOOGIE BOMB YESH.FORTNITE FUCK YEAH
  21. function sandbox(var,func)
  22. local env = getfenv(func)
  23. local newenv = setmetatable({},{
  24. __index = function(self,k)
  25. if k=="script" then
  26. return var
  27. else
  28. return env[k]
  29. end
  30. end,
  31. })
  32. setfenv(func,newenv)
  33. return func
  34. end
  35. cors = {}
  36. mas = Instance.new("Model",game:GetService("Lighting"))
  37. Tool0 = Instance.new("Tool")
  38. Part1 = Instance.new("Part")
  39. SpecialMesh2 = Instance.new("SpecialMesh")
  40. Part3 = Instance.new("Part")
  41. BillboardGui4 = Instance.new("BillboardGui")
  42. Script5 = Instance.new("Script")
  43. ImageLabel6 = Instance.new("ImageLabel")
  44. CylinderMesh7 = Instance.new("CylinderMesh")
  45. Part8 = Instance.new("Part")
  46. Weld9 = Instance.new("Weld")
  47. Weld10 = Instance.new("Weld")
  48. Weld11 = Instance.new("Weld")
  49. BlockMesh12 = Instance.new("BlockMesh")
  50. IntValue13 = Instance.new("IntValue")
  51. IntValue14 = Instance.new("IntValue")
  52. StringValue15 = Instance.new("StringValue")
  53. BoolValue16 = Instance.new("BoolValue")
  54. Script17 = Instance.new("Script")
  55. LocalScript18 = Instance.new("LocalScript")
  56. SpecialMesh19 = Instance.new("SpecialMesh")
  57. SpecialMesh20 = Instance.new("SpecialMesh")
  58. LocalScript21 = Instance.new("LocalScript")
  59. LocalScript22 = Instance.new("LocalScript")
  60. LocalScript23 = Instance.new("LocalScript")
  61. LocalScript24 = Instance.new("LocalScript")
  62. ScreenGui25 = Instance.new("ScreenGui")
  63. Frame26 = Instance.new("Frame")
  64. TextButton27 = Instance.new("TextButton")
  65. TextButton28 = Instance.new("TextButton")
  66. TextButton29 = Instance.new("TextButton")
  67. TextButton30 = Instance.new("TextButton")
  68. Script31 = Instance.new("Script")
  69. LocalScript32 = Instance.new("LocalScript")
  70. Sound33 = Instance.new("Sound")
  71. Sound34 = Instance.new("Sound")
  72. StringValue35 = Instance.new("StringValue")
  73. Tool0.Name = "Tactical Shotgun"
  74. Tool0.Parent = mas
  75. Part1.Parent = Tool0
  76. Part1.BrickColor = BrickColor.new("Bright bluish green")
  77. Part1.Anchored = true
  78. Part1.FormFactor = Enum.FormFactor.Custom
  79. Part1.Size = Vector3.new(0.510000467, 1.18000245, 1.34999704)
  80. Part1.CFrame = CFrame.new(6.70000076, 0.590013027, -9.69999599, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  81. Part1.Color = Color3.new(0, 0.560784, 0.611765)
  82. Part1.Position = Vector3.new(6.70000076, 0.590013027, -9.69999599)
  83. Part1.Color = Color3.new(0, 0.560784, 0.611765)
  84. SpecialMesh2.Parent = Part1
  85. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1"
  86. SpecialMesh2.Scale = Vector3.new(0.25, 0.25, 0.25)
  87. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=126534866"
  88. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  89. SpecialMesh2.Scale = Vector3.new(0.25, 0.25, 0.25)
  90. Part3.Name = "Barrel"
  91. Part3.Parent = Tool0
  92. Part3.BrickColor = BrickColor.new("Really black")
  93. Part3.Transparency = 1
  94. Part3.Rotation = Vector3.new(-90, 0, 0)
  95. Part3.Anchored = true
  96. Part3.FormFactor = Enum.FormFactor.Custom
  97. Part3.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  98. Part3.CFrame = CFrame.new(6.79500008, 0.98001498, -10.4250021, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  99. Part3.BottomSurface = Enum.SurfaceType.Smooth
  100. Part3.TopSurface = Enum.SurfaceType.Smooth
  101. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  102. Part3.Position = Vector3.new(6.79500008, 0.98001498, -10.4250021)
  103. Part3.Orientation = Vector3.new(-90, 0, 0)
  104. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  105. BillboardGui4.Name = "Light"
  106. BillboardGui4.Parent = Part3
  107. BillboardGui4.Size = UDim2.new(5.29999995, 0, 5.29999995, 0)
  108. BillboardGui4.Active = true
  109. BillboardGui4.Adornee = Part3
  110. Script5.Parent = BillboardGui4
  111. table.insert(cors,sandbox(Script5,function()
  112. script.Parent.Adornee = script.Parent.Parent
  113. end))
  114. ImageLabel6.Name = "Light"
  115. ImageLabel6.Parent = BillboardGui4
  116. ImageLabel6.Transparency = 1
  117. ImageLabel6.Size = UDim2.new(1, 0, 1, 0)
  118. ImageLabel6.Visible = false
  119. ImageLabel6.BackgroundColor3 = Color3.new(0.756863, 0.752941, 0.764706)
  120. ImageLabel6.BackgroundTransparency = 1
  121. ImageLabel6.Image = "http://www.roblox.com/asset/?id=42416376"
  122.  
  123.  
  124.  
  125.  
  126.  
  127. CylinderMesh7.Parent = Part3
  128. CylinderMesh7.Scale = Vector3.new(3.9375, 3.0625, 3.62499994)
  129. CylinderMesh7.Scale = Vector3.new(3.9375, 3.0625, 3.62499994)
  130. Part8.Name = "Handle"
  131. Part8.Parent = Tool0
  132. Part8.BrickColor = BrickColor.new("Black")
  133. Part8.Transparency = 1
  134. Part8.Rotation = Vector3.new(0, 15, 0)
  135. Part8.Anchored = true
  136. Part8.FormFactor = Enum.FormFactor.Custom
  137. Part8.Size = Vector3.new(0.800000012, 0.800000012, 0.800000012)
  138. Part8.CFrame = CFrame.new(6.78499985, 0.468012989, -9.25, 0.965925634, -1.62808846e-07, 0.25881961, 1.62807055e-07, 1, 2.14409219e-08, -0.25881961, 2.14273292e-08, 0.965925634)
  139. Part8.BottomSurface = Enum.SurfaceType.Smooth
  140. Part8.TopSurface = Enum.SurfaceType.Smooth
  141. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  142. Part8.Position = Vector3.new(6.78499985, 0.468012989, -9.25)
  143. Part8.Orientation = Vector3.new(0, 15, 0)
  144. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  145. Weld9.Parent = Part8
  146. Weld9.C0 = CFrame.new(0, 0, 0, -1.00000191, -1.5067078e-06, -9.84804558e-08, -1.01587557e-06, 0.999997854, -2.52425416e-05, -8.14032717e-07, -2.34245799e-05, -0.999998748)
  147. Weld9.C1 = CFrame.new(0, 0, 0, -1.00000191, -1.5067078e-06, -9.84804558e-08, -1.01587557e-06, 0.999997854, -2.52425416e-05, -8.14032717e-07, -2.34245799e-05, -0.999998748)
  148. Weld9.Part0 = Part8
  149. Weld9.Part1 = Part8
  150. Weld10.Parent = Part8
  151. Weld10.C0 = CFrame.new(0, 0, 0, -1, -1.26128168e-06, 3.57787826e-07, -1.26129044e-06, 0.99999994, -2.43186951e-05, -3.57757187e-07, -2.42888927e-05, -0.99999994)
  152. Weld10.C1 = CFrame.new(0, 0, 0, -1, -1.26128168e-06, 3.57787826e-07, -1.26129044e-06, 0.99999994, -2.43186951e-05, -3.57757187e-07, -2.42888927e-05, -0.99999994)
  153. Weld10.Part0 = Part8
  154. Weld10.Part1 = Part8
  155. Weld11.Parent = Part8
  156. Weld11.C0 = CFrame.new(0, 0, 0, -0.000490181032, 0.999999642, 7.29662133e-07, 0.999998808, 0.000490319042, -0.000502735376, -0.00050124526, 4.34723916e-07, -0.999996543)
  157. Weld11.C1 = CFrame.new(0, 0, 0, -0.000490181032, 0.999999642, 7.29662133e-07, 0.999998808, 0.000490319042, -0.000502735376, -0.00050124526, 4.34723916e-07, -0.999996543)
  158. Weld11.Part0 = Part8
  159. Weld11.Part1 = Part8
  160. BlockMesh12.Parent = Part8
  161. BlockMesh12.Offset = Vector3.new(0, 0.00104166672, 0)
  162. BlockMesh12.Scale = Vector3.new(0.25, 0.0416666679, 0.0416666679)
  163. BlockMesh12.Scale = Vector3.new(0.25, 0.0416666679, 0.0416666679)
  164. IntValue13.Name = "Ammo"
  165. IntValue13.Parent = Tool0
  166. IntValue13.Value = 999
  167. IntValue14.Name = "MaxAmmo"
  168. IntValue14.Parent = Tool0
  169. IntValue14.Value = 999
  170. StringValue15.Name = "StringValue"
  171. StringValue15.Parent = Tool0
  172. BoolValue16.Name = "VisibleB"
  173. BoolValue16.Parent = Tool0
  174. Script17.Name = "WeldArm"
  175. Script17.Parent = Tool0
  176. table.insert(cors,sandbox(Script17,function()
  177. Tool = script.Parent
  178.  
  179.  
  180. local arms = nil
  181. local torso = nil
  182. local weld33 = nil -- right arm
  183. local weld55 = nil -- left arm
  184. local welds = {}
  185.  
  186.  
  187.  
  188.  
  189. colors = {26,}
  190.  
  191. function Equip(mouse)
  192. wait(0.01)
  193. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  194. torso = Tool.Parent:FindFirstChild("Torso")
  195. if arms ~= nil and torso ~= nil then
  196. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  197. if sh ~= nil then
  198. local yes = true
  199. if yes then
  200. yes = false
  201. sh[1].Part1 = nil
  202. sh[2].Part1 = nil
  203. local weld1 = Instance.new("Weld") -- left arm
  204. weld55 = weld1
  205. weld1.Part0 = torso
  206. weld1.Parent = torso
  207. weld1.Part1 = arms[1]
  208. weld1.C1 = CFrame.new(-0.35, 0.5, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(290), 0, math.rad(-90))
  209. welds[1] = weld1
  210. local weld2 = Instance.new("Weld") -- right arm
  211. weld33 = weld2
  212. weld2.Part0 = torso
  213. weld2.Parent = torso
  214. weld2.Part1 = arms[2]
  215. weld2.C1 = CFrame.new(-0.75, 0.5, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-15), 0)
  216. welds[2] = weld2
  217.  
  218. end
  219. else
  220. print("sh")
  221. end
  222. else
  223. print("arms")
  224. end
  225. end
  226.  
  227. function Unequip(mouse)
  228. if arms ~= nil and torso ~= nil then
  229. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  230. if sh ~= nil then
  231. local yes = true
  232. if yes then
  233. yes = false
  234. sh[1].Part1 = arms[1]
  235. sh[2].Part1 = arms[2]
  236. welds[1].Parent = nil
  237. welds[2].Parent = nil
  238.  
  239. end
  240. else
  241. print("sh")
  242. end
  243. else
  244. print("arms")
  245. end
  246. end
  247. Tool.Equipped:connect(Equip)
  248. Tool.Unequipped:connect(Unequip)
  249. end))
  250. LocalScript18.Name = "Arms"
  251. LocalScript18.Parent = Tool0
  252. table.insert(cors,sandbox(LocalScript18,function()
  253. sp = script.Parent
  254.  
  255. Mesh = false -- If true will load BC 2.0 Arm meshes as well.
  256. Shirt = true -- If true will load the user's shirt to the arms as well
  257.  
  258. function onEquipped(mouse)
  259. local Player = game:GetService("Players").LocalPlayer
  260. local Cam = game.Workspace.CurrentCamera
  261.  
  262. local Arms = Instance.new("Model")
  263. Arms.Name = "Arms"
  264. Arms.Parent = Cam
  265.  
  266. if Shirt == true then
  267. local Humanoid = Instance.new("Humanoid")
  268. Humanoid.MaxHealth = 0
  269. Humanoid.Health = 0
  270. Humanoid.Name = ""
  271. Humanoid.Parent = Arms
  272.  
  273. local newShirt = Player.Character:FindFirstChild("Shirt"):clone()
  274. newShirt.Parent = Arms
  275. else end
  276.  
  277. local RightArm = Player.Character:FindFirstChild("Right Arm"):clone()
  278. RightArm.Name = "Right Arm"
  279. RightArm.Transparency = 0.1
  280.  
  281. local w = Instance.new("Weld")
  282. w.Part0 = RightArm
  283. w.Part1 = Player.Character:FindFirstChild("Right Arm")
  284. w.C0 = CFrame.new()
  285. w.C1 = CFrame.new()
  286. w.Parent = RightArm
  287. RightArm.Parent = Arms
  288.  
  289. local LeftArm = Player.Character:FindFirstChild("Left Arm"):clone()
  290. LeftArm.Name = "Left Arm"
  291. LeftArm.Transparency = 0.1
  292.  
  293. local w = Instance.new("Weld")
  294. w.Part0 = LeftArm
  295. w.Part1 = Player.Character:FindFirstChild("Left Arm")
  296. w.C0 = CFrame.new()
  297. w.C1 = CFrame.new()
  298. w.Parent = LeftArm
  299. LeftArm.Parent = Arms
  300.  
  301. if Mesh ~= false then
  302. local LeftArmMesh = script:FindFirstChild("LeftArm")
  303. LeftArmMesh.Parent = LeftArm
  304. local RightArmMesh = script:FindFirstChild("RightArm")
  305. RightArmMesh.Parent = RightArm
  306. else end
  307.  
  308. end
  309.  
  310. function onUnequipped(mouse)
  311. local Player = game:GetService("Players").LocalPlayer
  312. local Cam = game.Workspace.CurrentCamera
  313. for _, Model in pairs(Cam:GetChildren()) do
  314. if Model.Name == "Arms" then
  315. Model:remove()
  316. else end
  317. end
  318. end
  319.  
  320. sp.Equipped:connect(onEquipped)
  321. sp.Unequipped:connect(onUnequipped)
  322.  
  323. end))
  324. SpecialMesh19.Name = "LeftArm"
  325. SpecialMesh19.Parent = LocalScript18
  326. SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=27111419"
  327. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  328. SpecialMesh20.Name = "RightArm"
  329. SpecialMesh20.Parent = LocalScript18
  330. SpecialMesh20.MeshId = "http://www.roblox.com/asset/?id=27111864"
  331. SpecialMesh20.MeshType = Enum.MeshType.FileMesh
  332. LocalScript21.Name = "BackupWeld"
  333. LocalScript21.Parent = Tool0
  334. table.insert(cors,sandbox(LocalScript21,function()
  335. function Weld(x,y)
  336. local W = Instance.new("Weld")
  337. W.Part0 = x
  338. W.Part1 = y
  339. local CJ = CFrame.new(x.Position)
  340. local C0 = x.CFrame:inverse()*CJ
  341. local C1 = y.CFrame:inverse()*CJ
  342. W.C0 = C0
  343. W.C1 = C1
  344. W.Parent = x
  345. end
  346.  
  347. function Get(A)
  348. if A.className == "Part" then
  349. Weld(script.Parent.Handle, A)
  350. A.Anchored = false
  351. else
  352. local C = A:GetChildren()
  353. for i=1, #C do
  354. Get(C[i])
  355. end
  356. end
  357. end
  358.  
  359. function Finale()
  360. Get(script.Parent)
  361. end
  362.  
  363. script.Parent.Equipped:connect(Finale)
  364. script.Parent.Unequipped:connect(Finale)
  365. Finale()
  366. end))
  367. LocalScript22.Name = "Crouch"
  368. LocalScript22.Parent = Tool0
  369. table.insert(cors,sandbox(LocalScript22,function()
  370. on = 0
  371. Tool = script.Parent
  372. welds = {}
  373. sh = {}
  374. arms = nil
  375. torso = nil
  376. f = nil
  377. function Crouch(ison)
  378. if arms == nil and torso == nil then
  379. arms = {Tool.Parent:FindFirstChild("Left Leg"), Tool.Parent:FindFirstChild("Right Leg")}
  380. torso = Tool.Parent:FindFirstChild("Torso")
  381. end
  382. if arms ~= nil and torso ~= nil then
  383. sh = {torso:FindFirstChild("Left Hip"), torso:FindFirstChild("Right Hip")}
  384. if sh ~= nil then
  385. local yes = true
  386. if yes then
  387. yes = false
  388. if ison == 1 then
  389. sh[1].Part1 = nil
  390. sh[2].Part1 = nil
  391. local weld1 = Instance.new("Weld")
  392. weld1.Part0 = torso
  393. weld1.Parent = torso
  394. weld1.Part1 = arms[1]
  395. weld1.C1 = CFrame.new(-0.5, 0.75, 1)
  396. arms[1].Name = "LDave"
  397. arms[1].CanCollide = true
  398. welds[1] = weld1
  399. Tool.Parent.Humanoid.WalkSpeed = 10
  400. -------------------------------------------
  401. local weld2 = Instance.new("Weld")
  402. weld2.Part0 = torso
  403. weld2.Parent = torso
  404. weld2.Part1 = arms[2]
  405. weld2.C1 = CFrame.new(0.5,0.495,1.25) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  406. arms[2].Name = "RDave"
  407. arms[2].CanCollide = true
  408. welds[2] = weld2
  409. ---------------------------------
  410. local force = Instance.new("BodyForce")
  411. force.Parent = torso
  412. f = force
  413. wait(0.01)
  414. elseif ison == 0 then
  415. if arms then
  416. sh[1].Part1 = arms[1]
  417. sh[2].Part1 = arms[2]
  418. f.Parent = nil
  419. arms[2].Name = "Right Leg"
  420. arms[1].Name = "Left Leg"
  421. welds[1].Parent = nil
  422. welds[2].Parent = nil
  423. Tool.Parent.Humanoid.WalkSpeed = 99
  424. end
  425. end
  426. --
  427. end
  428. else
  429. print("sh")
  430. end
  431. else
  432. print("arms")
  433. end
  434. end
  435. function Key(key)
  436. if key then
  437. key = string.lower(key)
  438. if (key=="c") then
  439. if on == 1 then
  440. on = 0
  441. elseif on == 0 then
  442. on = 1
  443. end
  444. Crouch(on)
  445. end
  446. end
  447. end
  448. function Equip(mouse)
  449. mouse.KeyDown:connect(Key)
  450. end
  451. script.Parent.Equipped:connect(Equip)
  452.  
  453.  
  454. end))
  455. LocalScript23.Name = "Crouch/Patrol"
  456. LocalScript23.Parent = Tool0
  457. table.insert(cors,sandbox(LocalScript23,function()
  458. --Note this must be used with the accompanying weld script
  459. --This is an edited version of my V3 KeyCommand Script.
  460. --Heavily edited from a free model crouch script, ~ukwarrior6~
  461.  
  462. ----------------------------
  463. --Crouch and Patrol Script--
  464. ----------------------------
  465.  
  466. on = 0
  467. Tool = script.Parent
  468. welds = {}
  469. sh = {}
  470. arms = nil
  471. torso = nil
  472. f = nil
  473. Holstered = false
  474. wait()
  475. local Tool = script.Parent
  476. enabled = true
  477.  
  478. function Crouch(ison)
  479. if arms == nil and torso == nil then
  480. arms = {Tool.Parent:FindFirstChild("Left Leg"), Tool.Parent:FindFirstChild("Right Leg")}
  481. torso = Tool.Parent:FindFirstChild("Torso")
  482. end
  483. if arms ~= nil and torso ~= nil then
  484. sh = {torso:FindFirstChild("Left Hip"), torso:FindFirstChild("Right Hip")}
  485. if sh ~= nil then
  486. local yes = true
  487. if yes then
  488. yes = false
  489. if ison == 1 then
  490. sh[1].Part1 = nil
  491. sh[2].Part1 = nil
  492. local weld1 = Instance.new("Weld")
  493. weld1.Part0 = torso
  494. weld1.Parent = torso
  495. weld1.Part1 = arms[1]
  496. weld1.C1 = CFrame.new(-0.5, 0.75, 1)
  497. arms[1].Name = "LDave"
  498. arms[1].CanCollide = true
  499. welds[1] = weld1
  500. -------------------------------------------
  501. local weld2 = Instance.new("Weld")
  502. weld2.Part0 = torso
  503. weld2.Parent = torso
  504. weld2.Part1 = arms[2]
  505. weld2.C1 = CFrame.new(0.5,0.495,1.25) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  506. arms[2].Name = "RDave"
  507. arms[2].CanCollide = true
  508. welds[2] = weld2
  509. ---------------------------------
  510. local force = Instance.new("BodyForce")
  511. force.Parent = torso
  512. f = force
  513. wait(0.01)
  514. elseif ison == 0 then
  515. if arms then
  516. sh[1].Part1 = arms[1]
  517. sh[2].Part1 = arms[2]
  518. f.Parent = nil
  519. arms[2].Name = "Right Leg"
  520. arms[1].Name = "Left Leg"
  521. welds[1].Parent = nil
  522. welds[2].Parent = nil
  523. end
  524. end
  525. --
  526. end
  527. else
  528. print("sh")
  529. end
  530. else
  531. print("arms")
  532. end
  533. end
  534. ----------------------------------------------------------------------------------------------------------------
  535. function GunUp()
  536. Holstered = false
  537. Tool.Enabled = true
  538. torso = Tool.Parent:FindFirstChild("Torso")
  539. if torso ~= nil then
  540. torso.weld1.C1 = CFrame.new(0.7, 0.9, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(28), math.rad(-1))
  541. torso.weld2.C1 = CFrame.new(-0.6, 0, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-0.01), 0)
  542. end
  543. end
  544.  
  545. function GunDown()
  546. Holstered = true
  547. Tool.Enabled = false -- You don't want to be shooting if your not aiming
  548. torso = Tool.Parent:FindFirstChild("Torso")
  549. if torso ~= nil then
  550. torso.weld1.C1 = CFrame.new(0.5,0,.5) * CFrame.fromEulerAnglesXYZ(math.rad(315), 0, math.rad(-40))
  551. torso.weld2.C1 = CFrame.new(-.8, -0.6, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-40), math.rad(-60), 0)
  552. end
  553. end
  554. -----------------------------------------------------------------------------------------------------------------
  555. function onEquippedLocal(mouse)
  556. mouse.Icon = "" -- Chuck in a cool crosshair here..
  557. mouse.KeyDown:connect(onKeyDown)
  558. end
  559. -----------------------------------------------------------------------------------------------------------------
  560. function onKeyDown(key)
  561. if (key~=nil) then
  562. key = key:lower()
  563.  
  564. if (key=="c") then -- Toggle Crouch (For some reason it breaks if you patrol first, working on this...
  565. if on == 1 then
  566. on = 0
  567. elseif on == 0 then
  568. on = 1
  569. end
  570. Crouch(on)
  571.  
  572. elseif (key=="e") then -- Toggle Patrol
  573. if Holstered == true then
  574. script.Parent.Parent.Humanoid.WalkSpeed = 16
  575. GunUp()
  576. elseif Holstered == false then
  577. script.Parent.Parent.Humanoid.WalkSpeed = 20
  578. GunDown()
  579. end end end end
  580. Tool.Equipped:connect(onEquippedLocal)
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587. end))
  588. LocalScript24.Name = "GuiScript"
  589. LocalScript24.Parent = Tool0
  590. table.insert(cors,sandbox(LocalScript24,function()
  591. local Tool = script.Parent
  592.  
  593. local vPlayer
  594. local Gui
  595. local Alt
  596. local Coords
  597. local Ammo
  598. local ready = false
  599.  
  600.  
  601. function setUpGui()
  602. if vPlayer == nil or vPlayer:findFirstChild("PlayerGui") == nil then
  603. return
  604. end
  605.  
  606. Gui = script.ScreenGui:Clone()
  607. Gui.Name = "GunDisplay"
  608. Gui.Parent = vPlayer.PlayerGui
  609. end
  610.  
  611. function onEquippedLocal(mouse)
  612. vPlayer = game.Players.LocalPlayer
  613.  
  614. setUpGui()
  615. ready = false
  616. end
  617.  
  618. function onUnequippedLocal(mouse)
  619. if Gui then
  620. Gui:remove()
  621. end
  622.  
  623. Gui = nil
  624. Alt = nil
  625. Coords = nil
  626. Ammo = nil
  627. vPlayer = nil
  628. end
  629.  
  630. Tool.Equipped:connect(onEquippedLocal)
  631. Tool.Unequipped:connect(onUnequippedLocal)
  632.  
  633. while true do
  634. wait()
  635. if Gui then
  636. Gui.Stats.Mode.Text = "Mode: " ..script.Parent.ModeText.Value
  637. Gui.Stats.Ammo.Ammo.Text = ""..math.floor((((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100)).."%"
  638. Gui.Stats.Reload.Text = script.Parent.StringValue.Value
  639. if script.Parent.VisibleB.Value then
  640. Gui.Stats.Reload.Visible = true
  641. else
  642. Gui.Stats.Reload.Visible = false
  643. end
  644. if (((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100) > 66 then
  645. Gui.Stats.Ammo.Ammo.TextColor3 = Color3.new(-0,-128,-0)
  646. elseif (((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100) > 33 then
  647. Gui.Stats.Ammo.Ammo.TextColor3 = Color3.new(-255,-255,-102)
  648. elseif (((script.Parent.Ammo.Value / script.Parent.MaxAmmo.Value)) * 100) > 0 then
  649. Gui.Stats.Ammo.Ammo.TextColor3 = Color3.new(-255,-51,-0)
  650. end
  651.  
  652. end
  653. end
  654.  
  655. end))
  656. ScreenGui25.Parent = LocalScript24
  657. Frame26.Name = "Stats"
  658. Frame26.Parent = ScreenGui25
  659. Frame26.Transparency = 1
  660. Frame26.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  661. Frame26.Position = UDim2.new(0.100000001, 0, 0.649999976, 0)
  662. Frame26.BackgroundTransparency = 1
  663. TextButton27.Name = "Mode"
  664. TextButton27.Parent = Frame26
  665. TextButton27.Transparency = 1
  666. TextButton27.Size = UDim2.new(1, 0, 0.5, 0)
  667. TextButton27.Text = "Mode: Nil"
  668. TextButton27.BackgroundTransparency = 1
  669. TextButton27.Font = Enum.Font.ArialBold
  670. TextButton27.FontSize = Enum.FontSize.Size18
  671. TextButton27.TextColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  672. TextButton28.Name = "Ammo"
  673. TextButton28.Parent = Frame26
  674. TextButton28.Transparency = 1
  675. TextButton28.Size = UDim2.new(1, 0, 0.5, 0)
  676. TextButton28.Text = "Ammo: "
  677. TextButton28.Position = UDim2.new(-0.119999997, 0, 0.5, 0)
  678. TextButton28.BackgroundTransparency = 1
  679. TextButton28.Font = Enum.Font.ArialBold
  680. TextButton28.FontSize = Enum.FontSize.Size18
  681. TextButton28.TextColor3 = Color3.new(0.866667, 0.866667, 0.866667)
  682. TextButton29.Name = "Ammo"
  683. TextButton29.Parent = TextButton28
  684. TextButton29.Transparency = 1
  685. TextButton29.Size = UDim2.new(1, 0, 1, 0)
  686. TextButton29.Text = "90%"
  687. TextButton29.Position = UDim2.new(0.699999988, 0, 0, 0)
  688. TextButton29.BackgroundTransparency = 1
  689. TextButton29.Font = Enum.Font.ArialBold
  690. TextButton29.FontSize = Enum.FontSize.Size18
  691. TextButton29.TextColor3 = Color3.new(1, 0.2, 0)
  692. TextButton29.TextXAlignment = Enum.TextXAlignment.Left
  693. TextButton30.Name = "Reload"
  694. TextButton30.Parent = Frame26
  695. TextButton30.Transparency = 1
  696. TextButton30.Size = UDim2.new(1, 0, 0.5, 0)
  697. TextButton30.Text = "Reloading"
  698. TextButton30.Position = UDim2.new(0, 0, 1, 0)
  699. TextButton30.Visible = false
  700. TextButton30.BackgroundTransparency = 1
  701. TextButton30.Font = Enum.Font.ArialBold
  702. TextButton30.FontSize = Enum.FontSize.Size18
  703. TextButton30.TextColor3 = Color3.new(1, 0.2, 0)
  704. TextButton30.TextTransparency = 1.8000003099442
  705. Script31.Name = "Flash"
  706. Script31.Parent = TextButton30
  707. table.insert(cors,sandbox(Script31,function()
  708. while true do wait()
  709. for i=1,5 do
  710. script.Parent.TextTransparency = script.Parent.TextTransparency + 0.1
  711. wait(0.05)
  712. end
  713. wait(0.1)
  714. for i=1,5 do
  715. script.Parent.TextTransparency = script.Parent.TextTransparency - 0.1
  716. wait(0.05)
  717. end
  718. end
  719.  
  720. end))
  721. LocalScript32.Name = "MainScript"
  722. LocalScript32.Parent = Tool0
  723. table.insert(cors,sandbox(LocalScript32,function()
  724. wait(1)
  725. local Tool = script.Parent;
  726. local pewsound
  727. local bangsound
  728. local cam
  729. local ggui
  730.  
  731. enabled = true
  732. automatichold = false
  733. dmged = false
  734. shotgun = false
  735. equipped = false
  736. overheated = false
  737. isZoom = false
  738.  
  739. -----------------------------------------ONLY EDIT THESE VALUES!!!!!-----------------------------------------
  740. -----!Instructions!-----
  741. --Make sure you have a part in the gun named Barrel, it is where the raycast will shoot from.--
  742. --Just place this script into any gun and edit the values below.--
  743. --Editting anything else will risk breaking it.--
  744. ------------------------
  745. Damage = 87
  746. SPS = 15 -- Shots Per Second, gives a limit of how fast the gun shoots.
  747. Recoil = 3 -- [1-10] [1 = Minigun, 10 = Sniper]
  748. WallShoot = false -- Shoots through walls.
  749. GH = false -- [True = RB can't hurt RB.] [False = RB can hurt RB.]
  750. BulletColor = "Royal purple" -- Any Brickcolor will work.
  751. Flash = true
  752. --------------------------------------------------------------------------------------------------------
  753.  
  754. local zm = Instance.new("Part")
  755. zm.Name = "ZoomZM"
  756. zm.Anchored = true
  757. zm.Transparency = 1
  758. zm.Size = Vector3.new(1,1,1)
  759. zm.CanCollide = false
  760. GunType = 0
  761.  
  762. --[[local gui = Instance.new("ScreenGui")
  763. local bg = Instance.new("Frame",gui)
  764. local bar = Instance.new("Frame",bg)
  765. local bvl = Instance.new("ImageLabel", bg)
  766. bvl.Name = "Bevel"
  767. bvl.BackgroundTransparency = 1
  768. bvl.Image = "http://www.roblox.com/asset/?id=56852431"
  769. bvl.Size = UDim2.new(1,0,1,0)
  770. bg.Name = "Back"
  771. bar.Name = "Charge"
  772. bar.BackgroundColor3 = Color3.new(200/255,0/255,0/255)
  773. bg.BackgroundColor3 = Color3.new(200/255,200/255,200/255)
  774. bg.Size = UDim2.new(0,10,0,-100)
  775. bg.Position = UDim2.new(0,5,0,500)
  776. bar.Size = UDim2.new(0,4,-1,0)
  777. bar.Position = UDim2.new(0,3,1,0)
  778.  
  779. ggui = gui:Clone()
  780. ggui.Name = "GunGui"
  781. ggui.Back.Charge.Size = UDim2.new(0,4,-(script.Charge.Value/100),0)]]
  782.  
  783. GroupID = 9999
  784.  
  785. function AntiGH(char1,char2)
  786. if GH then
  787. local plyr1 = game.Players:findFirstChild(char1.Name)
  788. local plyr2 = game.Players:findFirstChild(char2.Name)
  789. if plyr1 and plyr2 then
  790. if plyr1:IsInGroup(GroupID) and plyr2:IsInGroup(GroupID) then
  791. return false
  792. end
  793. end
  794. return true
  795. elseif not GH then
  796. return true
  797. end
  798. end
  799.  
  800. MaxDist = 1000
  801.  
  802. function RayCast(Start,End,Ignore)
  803. if WallShoot then
  804. ray1 = Ray.new(Start, End.unit * 999.999)
  805. local Part1, TempPos = Workspace:FindPartOnRay(ray1,Ignore)
  806. ray2 = Ray.new(TempPos, End.unit * 999.999)
  807. local Part2, EndPos = Workspace:FindPartOnRay(ray2,Part1)
  808. return Part1, Part2, EndPos
  809. elseif not WallShoot then
  810. ray = Ray.new(Start, End.unit * 999.999)
  811. return Workspace:FindPartOnRay(ray,Ignore)
  812. end
  813. end
  814.  
  815. function DmgPlr(Part)
  816. if Part ~= nil then
  817. local c = Instance.new("ObjectValue")
  818. c.Name = "creator"
  819. c.Value = game.Players:findFirstChild(script.Parent.Parent.Name)
  820. local hum = Part.Parent:findFirstChild("Humanoid")
  821. local hathum = Part.Parent.Parent:findFirstChild("Humanoid")
  822. local hat = Part.Parent
  823. if hathum ~= nil and hat:IsA("Hat") and AntiGH(hathum.Parent, script.Parent.Parent) then
  824. hathum:TakeDamage(Damage/1)
  825. Part.Parent = game.Workspace
  826. Part.CFrame = CFrame.new(Part.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)))
  827. hat:Remove()
  828. c.Parent = hathum
  829. game.Debris:AddItem(c,1.5)
  830. elseif hum ~= nil and AntiGH(hum.Parent, script.Parent.Parent) then
  831. if Part.Name == "Head" then
  832. hum:TakeDamage(Damage*27.3)
  833. end
  834. hum:TakeDamage(Damage)
  835. c.Parent = hum
  836. game.Debris:AddItem(c,1.5)
  837. end
  838. end
  839. end
  840.  
  841. function onButton1Down(mouse)
  842. if script.Parent.Ammo.Value == 0 then
  843. else
  844. if GunType == 0 then
  845. if (not enabled) then return end
  846. enabled = false
  847. LaserShoot(mouse)
  848. if Flash then
  849. script.Parent.Barrel.Light.Light.Visible = true
  850. end
  851. script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1
  852. wait(0.01)
  853. if Flash then
  854. script.Parent.Barrel.Light.Light.Visible = false
  855. end
  856. wait(1/SPS)
  857. enabled = true
  858. elseif GunType == 1 then
  859. automatichold = true
  860. while automatichold == true and script.Parent.Ammo.Value ~= 0 do wait()
  861. if (not enabled) then return end
  862. if script.Parent.Parent:findFirstChild("Humanoid").Health == 0 then script.Parent:Remove() end
  863. enabled = false
  864. LaserShoot(mouse)
  865. if Flash then
  866. script.Parent.Barrel.Light.Light.Visible = true
  867. end
  868. script.Parent.Ammo.Value = script.Parent.Ammo.Value - 1
  869. wait(0.01)
  870. if Flash then
  871. script.Parent.Barrel.Light.Light.Visible = false
  872. end
  873. wait(1/SPS)
  874. enabled = true
  875. end
  876. end
  877. end
  878. end
  879.  
  880. function LaserShoot(mouse)
  881. hit = mouse.Hit.p
  882. local StartPos = script.Parent.Barrel.CFrame.p
  883. local rv = (StartPos-hit).magnitude/(Recoil * 20)
  884. local rcl = Vector3.new(math.random(-rv,rv),math.random(-rv,rv),math.random(-rv,rv))
  885. aim = hit + rcl
  886. local P = Instance.new("Part")
  887. P.Name = "Bullet"
  888. P.formFactor = 3
  889. P.BrickColor = BrickColor.new(BulletColor)
  890. P.Size = Vector3.new(9.5,1,9.5)
  891. P.Anchored = true
  892. P.CanCollide = false
  893. P.Transparency = 0.5
  894. P.Parent = script.Parent.Parent
  895. local m = Instance.new("CylinderMesh")
  896. m.Name = "Mesh"
  897. m.Parent = P
  898. local c = Instance.new("ObjectValue")
  899. c.Name = "creator"
  900. c.Value = game.Players:findFirstChild(script.Parent.Parent.Name)
  901. pewsound = script:FindFirstChild("Fire")
  902. if pewsound then
  903. pewsound:Play()
  904. end --Brick created. Moving on to next part
  905. local SPos = script.Parent.Barrel.CFrame.p
  906. if WallShoot then
  907. local Part1, Part2, EndPos = RayCast(SPos, (aim-SPos).unit * 999, script.Parent.Parent)
  908. DmgPlr(Part1)
  909. DmgPlr(Part2)
  910. if Part1 and Part2 then
  911. local enddist = (EndPos-SPos).magnitude
  912. P.CFrame = CFrame.new(EndPos, SPos) * CFrame.new(0,0,-enddist/2) * CFrame.Angles(math.rad(90),0,0)
  913. m.Scale = Vector3.new(.04,enddist,.04)
  914. else
  915. P.CFrame = CFrame.new(EndPos, SPos) * CFrame.new(0,0,-MaxDist/2) * CFrame.Angles(math.rad(90),0,0)
  916. m.Scale = Vector3.new(.04,MaxDist,.04)
  917. end
  918. elseif not WallShoot then
  919. local Part, Pos = RayCast(SPos, (aim-SPos).unit * 999, script.Parent.Parent)
  920. DmgPlr(Part)
  921. if Part then
  922. local dist = (Pos-SPos).magnitude
  923. P.CFrame = CFrame.new(Pos, SPos) * CFrame.new(0,0,-dist/2) * CFrame.Angles(math.rad(90),0,0)
  924. m.Scale = Vector3.new(.1,dist,.1)
  925. else
  926. P.CFrame = CFrame.new(Pos, SPos) * CFrame.new(0,0,-MaxDist/2) * CFrame.Angles(math.rad(90),0,0)
  927. m.Scale = Vector3.new(.1,MaxDist,.1)
  928. end
  929. end
  930. game.Debris:AddItem(P,.1)
  931. end
  932.  
  933. function onButton1Up(mouse)
  934. automatichold = false
  935. end
  936.  
  937. function onKeyDown(key, mouse)
  938.  
  939.  
  940.  
  941. if key:lower() == "r" then
  942. if script.Parent.Ammo.Value ~= script.Parent.MaxAmmo.Value then
  943. reloadsound = script:FindFirstChild("Reload")
  944. if reloadsound then
  945. reloadsound:Play()
  946. end
  947. enabled = false
  948. script.Parent.VisibleB.Value = true
  949. script.Parent.StringValue.Value = "Reloading"
  950. repeat script.Parent.StringValue.Value = "Reloading" wait(0.3) script.Parent.Ammo.Value = script.Parent.Ammo.Value + 3 script.Parent.StringValue.Value = "Reloading" until script.Parent.Ammo.Value >= script.Parent.MaxAmmo.Value
  951. script.Parent.Ammo.Value = script.Parent.MaxAmmo.Value
  952. wait(0.2)
  953. script.Parent.VisibleB.Value = false
  954. enabled = true
  955. end
  956. end
  957.  
  958. if key:lower() == "m" then
  959. if GunType == 0 then
  960. GunType = 0
  961. Recoil = 3
  962. else
  963. GunType = 1
  964. Recoil = 3
  965. end
  966. end
  967.  
  968. end
  969.  
  970. function onEquipped(mouse)
  971. equipped = true
  972.  
  973. if mouse == nil then
  974. print("Mouse not found")
  975. return
  976. end
  977. mouse.Icon = "http://www.roblox.com/asset/?id=52812029"
  978. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  979. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  980. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  981.  
  982. end
  983.  
  984. function onUnequipped(mouse)
  985. equipped = false
  986. automatichold = false
  987.  
  988.  
  989. end
  990.  
  991. script.Parent.Equipped:connect(onEquipped)
  992. script.Parent.Unequipped:connect(onUnequipped)
  993. while true do wait()
  994. if script.Parent.Ammo.Value == 0 then
  995. script.Parent.VisibleB.Value = true
  996. script.Parent.StringValue.Value = "Reload"
  997. end
  998. if GunType == 1 then
  999. script.Parent.ModeText.Value = "Auto"
  1000. else
  1001. script.Parent.ModeText.Value = "Semi"
  1002. end
  1003. end
  1004.  
  1005.  
  1006. end))
  1007. Sound33.Name = "Fire"
  1008. Sound33.Parent = LocalScript32
  1009. Sound33.SoundId = "http://roblox.com/asset/?id=444376855"
  1010. Sound33.Volume = 9e9
  1011. Sound34.Name = "Reload"
  1012. Sound34.Parent = LocalScript32
  1013. Sound34.SoundId = "http://www.roblox.com/asset/?id=519174837"
  1014. Sound34.Volume = 1
  1015. Sound34.PlayOnRemove = true
  1016. StringValue35.Name = "ModeText"
  1017. StringValue35.Parent = Tool0
  1018. StringValue35.Value = "Nil"
  1019. for i,v in pairs(mas:GetChildren()) do
  1020. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  1021. pcall(function() v:MakeJoints() end)
  1022. end
  1023. mas:Destroy()
  1024. for i,v in pairs(cors) do
  1025. spawn(function()
  1026. pcall(v)
  1027. end)
  1028. end
  1029.  
  1030. --{{Made by Strazos}}--
  1031.  
  1032. local p = game.Players.LocalPlayer
  1033. local char = p.Character
  1034. local larm = char["Left Arm"]
  1035. local rarm = char["Right Arm"]
  1036. local lleg = char["Left Leg"]
  1037. local rleg = char["Right Leg"]
  1038. local hed = char.Head
  1039. local torso = char.Torso
  1040. local hum = char.Humanoid
  1041. local weld = Instance.new("Weld",torso)
  1042. weld.Part0 = torso
  1043.  
  1044. larm.Transparency = 1
  1045. rarm.Transparency = 1
  1046. lleg.Transparency = 1
  1047. rleg.Transparency = 1
  1048. hed.Transparency = 1
  1049. torso.Transparency = 1
  1050.  
  1051.  
  1052. local train = Instance.new("Part",torso)
  1053. train.Anchored = true
  1054. train.CanCollide = false
  1055. train.Size = Vector3.new(5,5,5)
  1056. train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  1057. weld.Part1 = train
  1058. weld.C1 = CFrame.new(0,-4.5,0) * CFrame.Angles(0,math.rad(0),0)
  1059. train.Anchored = false
  1060. local TrainMesh = Instance.new("SpecialMesh",train)
  1061. TrainMesh.MeshType = Enum.MeshType.FileMesh
  1062. TrainMesh.Scale = Vector3.new(0.60, 0.60, 0.60)
  1063. TrainMesh.MeshId = "rbxassetid://1"
  1064. TrainMesh.TextureId = "rbxassetid://1"
  1065.  
  1066. hum.WalkSpeed = 420;
  1067.  
  1068.  
  1069. for i,v in pairs(char:GetChildren()) do
  1070. if v:IsA("Part") then
  1071. v.Transparency = 1;
  1072. elseif v:IsA("Hat") then
  1073. v:Destroy()
  1074. elseif v:IsA("Model") then
  1075. v:Destroy()
  1076. end
  1077. end
  1078.  
  1079.  
  1080. local function SFX(id) local s=Instance.new("Sound",torso); s.SoundId = "rbxassetid://"..id; s.Volume = 999; return s; end
  1081. train.Touched:connect(function(p)
  1082. if p.Parent then
  1083. if p.Parent:IsA("Model") then
  1084. if game.Players:FindFirstChild(p.Parent.Name) then
  1085. if p.Parent.Name ~= game.Players.LocalPlayer.Name then
  1086. game.Players:FindFirstChild(p.Parent.Name).Character:BreakJoints()
  1087. local Whistle = SFX(1)
  1088. Whistle:Play()
  1089. end
  1090. end
  1091. end
  1092. end
  1093. end)
  1094.  
  1095. local Music = SFX(274621035)
  1096. Music.Looped = true;
  1097. wait(1)
  1098. Music:Play();
  1099.  
  1100. local particleemitter = Instance.new("ParticleEmitter", torso)
  1101. particleemitter.Texture = "http://www.roblox.com/asset/?id=0"
  1102. particleemitter.VelocitySpread = 180
  1103. particleemitter.Lifetime = NumberRange.new(5)
  1104. particleemitter.Speed = NumberRange.new(6)
  1105. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5)})
  1106. particleemitter.RotSpeed = NumberRange.new(-55, 55)
  1107. particleemitter.Rate = 150
  1108. particleemitter.Rotation = NumberRange.new(-55, 55)
  1109. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.7, 0.9), NumberSequenceKeypoint.new(1, 1)})
  1110. particleemitter.LightEmission = 0
  1111. particleemitter.Color = ColorSequence.new(Color3.new(255,255,255), Color3.new(255,255,255)) --Color here
  1112.  
  1113.  
  1114.  
  1115. local plr = game.Players.LocalPlayer
  1116. local chr = plr.Character
  1117. local maus = plr:GetMouse()
  1118. local PGui=plr.PlayerGui
  1119. local lleg = chr["Left Leg"]
  1120. local rleg = chr["Right Leg"]
  1121. local larm = chr["Left Arm"]
  1122. local rarm = chr["Right Arm"]
  1123. local hed = chr.Head
  1124. local rutprt = chr.HumanoidRootPart
  1125. local torso = chr.Torso
  1126. local pseudohead=hed:Clone()
  1127. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  1128. pseudohead.Name='PseudoHead'
  1129. pseudohead.Parent=chr.Head
  1130. local pseudoweld=Instance.new('Weld',torso)
  1131. pseudoweld.Part0=hed
  1132. pseudoweld.Name='PseudoHeadWeld'
  1133. pseudoweld.Part1=pseudohead
  1134. hed.Transparency=1
  1135. for i,x in pairs(chr:GetChildren()) do
  1136. if x:IsA'HHat' then x:destroy'' end end
  1137. for i,x in pairs(chr:GetChildren()) do
  1138. for a,v in pairs(x:GetChildren()) do
  1139. if v:IsA'CharacterMesh' then v:destroy''
  1140. end
  1141. end
  1142. end
  1143.  
  1144. -- Objects
  1145.  
  1146. local ScreenGui = Instance.new("ScreenGui")
  1147. local TextButton = Instance.new("TextButton")
  1148.  
  1149. -- Properties
  1150.  
  1151. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  1152.  
  1153. TextButton.Parent = ScreenGui
  1154. TextButton.BackgroundColor3 = Color3.new(255, 255, 1)
  1155. TextButton.Size = UDim2.new(0, 200, 0, 50)
  1156. TextButton.Font = Enum.Font.SourceSans
  1157. TextButton.FontSize = Enum.FontSize.Size14
  1158. TextButton.Text = "Roar"
  1159. TextButton.TextSize = 14
  1160.  
  1161. --[[Function/s being made!]]
  1162. function PlayMusic(ID)
  1163. for i, v in pairs (game.Workspace:GetChildren()) do
  1164. if v:IsA("Sound") then
  1165. end
  1166. end
  1167. local music = Instance.new("Sound")
  1168. local asset = "rbxassetid://"
  1169. music.SoundId = asset .. ID
  1170. music.Parent = workspace
  1171. music.Volume = 999
  1172. music.Looped = false
  1173. music:Play()
  1174. end
  1175. --[[Connecting functions!]]
  1176. TextButton.MouseButton1Down:connect(function()
  1177. PlayMusic(430616210)
  1178. end)
  1179.  
  1180. repeat wait()
  1181. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  1182. local mouse = game.Players.LocalPlayer:GetMouse()
  1183. repeat wait() until mouse
  1184. local plr = game.Players.LocalPlayer
  1185. local torso = plr.Character.Torso
  1186. local flying = true
  1187. local deb = true
  1188. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  1189. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1190. local maxspeed = 50
  1191. local speed = 0
  1192.  
  1193. function Fly()
  1194. local bg = Instance.new("BodyGyro", torso)
  1195. bg.P = 9e4
  1196. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  1197. bg.cframe = torso.CFrame
  1198. local bv = Instance.new("BodyVelocity", torso)
  1199. bv.velocity = Vector3.new(0,0.1,0)
  1200. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  1201. repeat wait()
  1202. plr.Character.Humanoid.PlatformStand = true
  1203. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  1204. speed = speed+.5+(speed/maxspeed)
  1205. if speed > maxspeed then
  1206. speed = maxspeed
  1207. end
  1208. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  1209. speed = speed-1
  1210. if speed < 0 then
  1211. speed = 0
  1212. end
  1213. end
  1214. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  1215. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  1216. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  1217. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  1218. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  1219. else
  1220. bv.velocity = Vector3.new(0,0.1,0)
  1221. end
  1222. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  1223. until not flying
  1224. ctrl = {f = 0, b = 0, l = 0, r = 0}
  1225. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1226. speed = 0
  1227. bg:Destroy()
  1228. bv:Destroy()
  1229. plr.Character.Humanoid.PlatformStand = false
  1230. end
  1231. mouse.KeyDown:connect(function(key)
  1232. if key:lower() == "e" then
  1233. if flying then flying = false
  1234. else
  1235. flying = true
  1236. Fly()
  1237. end
  1238. elseif key:lower() == "w" then
  1239. ctrl.f = 1
  1240. elseif key:lower() == "s" then
  1241. ctrl.b = -1
  1242. elseif key:lower() == "a" then
  1243. ctrl.l = -1
  1244. elseif key:lower() == "d" then
  1245. ctrl.r = 1
  1246. end
  1247. end)
  1248. mouse.KeyUp:connect(function(key)
  1249. if key:lower() == "w" then
  1250. ctrl.f = 0
  1251. elseif key:lower() == "s" then
  1252. ctrl.b = 0
  1253. elseif key:lower() == "a" then
  1254. ctrl.l = 0
  1255. elseif key:lower() == "d" then
  1256. ctrl.r = 0
  1257. end
  1258. end)
  1259. Fly()
  1260.  
  1261. wait(90)
  1262. text1.Image = "http://www.roblox.com/asset/?id=9"
  1263. wait(0.13)
  1264. gui2=Instance.new("BillboardGui")
  1265. gui2.Parent= game.Players.LocalPlayer.Character.Head
  1266. gui2.Adornee= game.Players.LocalPlayer.Character.Head
  1267. gui2.Size=UDim2.new(30,25,30,30)
  1268. gui2.StudsOffset=Vector3.new(0,0,0)
  1269. gui2.AlwaysOnTop = true
  1270. text2=Instance.new("ImageLabel")
  1271. text2.Image = "http://www.roblox.com/asset/?id=66" --[[Face Image Source (If you wish to change the face to a different decal put it in there]]
  1272. text2.Size=UDim2.new(1,0,1,0)
  1273. text2.Position=UDim2.new(0,0,0,0)
  1274. text2.BackgroundTransparency = 1
  1275. text2.Parent=gui2
  1276.  
  1277.  
  1278. wait(0)
  1279. gui4=Instance.new("BillboardGui")
  1280. gui4.Parent= game.Players.LocalPlayer.Character.Head
  1281. gui4.Adornee= game.Players.LocalPlayer.Character.Head
  1282. gui4.Size=UDim2.new(30,25,30,30)
  1283. gui4.StudsOffset=Vector3.new(0,0,0)
  1284. gui4.AlwaysOnTop = true
  1285. text4=Instance.new("ImageLabel")
  1286. text4.Image = "http://www.roblox.com/asset/?id=66" --[[Face Image Source (If you wish to change the face to a different decal put it in there]]
  1287. text4.Size=UDim2.new(1,0,1,0)
  1288. text4.Position=UDim2.new(0,0,0,0)
  1289. text4.BackgroundTransparency = 1
  1290. text4.Parent=gui4
  1291.  
  1292. text2 = Instance.new("ImageLabel")
  1293. text2.Parent = game.LocalPlayer.Character.Head
  1294. text2.Image = "http://www.roblox.com/asset/?id=1826530218"
  1295. text2.Transparency = 1
  1296. text4 = Instance.new("ImageLabel")
  1297. text4.Parent = game.LocalPlayer.Character.Head
  1298. text4.Image = "http://www.roblox.com/asset/?id=1826510309"
  1299. while true do
  1300. wait(0.13)
  1301. text4.Transparency = 1
  1302. text2.Transparency = 0
  1303. wait(0.13)
  1304. text4.Transparency = 0
  1305. text2.Transparency = 1
  1306. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement