Advertisement
Infintyboy

Radio | A Roblox Script

Mar 29th, 2019
8,914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 21.03 KB | None | 0 0
  1. -------------------------------
  2. --Just a SIMPLE radio script.--
  3. -----------enjoy.--------------
  4. -------------------------------
  5.  
  6. wait()
  7. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  8. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  9. local RealPlayer = Player
  10. 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()}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;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 t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)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 self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({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")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  11. -----------------------------------------------
  12. function sandbox(var,func)
  13.     local env = getfenv(func)
  14.     local newenv = setmetatable({},{
  15.         __index = function(self,k)
  16.             if k=="script" then
  17.                 return var
  18.             else
  19.                 return env[k]
  20.             end
  21.         end,
  22.     })
  23.     setfenv(func,newenv)
  24.     return func
  25. end
  26. cors = {}
  27. mas = Instance.new("Model",game:GetService("Lighting"))
  28. Model0 = Instance.new("Model")
  29. Part1 = Instance.new("Part")
  30. BlockMesh2 = Instance.new("BlockMesh")
  31. Part3 = Instance.new("Part")
  32. CylinderMesh4 = Instance.new("CylinderMesh")
  33. Part5 = Instance.new("Part")
  34. CylinderMesh6 = Instance.new("CylinderMesh")
  35. Part7 = Instance.new("Part")
  36. CylinderMesh8 = Instance.new("CylinderMesh")
  37. ManualWeld9 = Instance.new("ManualWeld")
  38. Part10 = Instance.new("Part")
  39. SpecialMesh11 = Instance.new("SpecialMesh")
  40. ManualWeld12 = Instance.new("ManualWeld")
  41. ManualWeld13 = Instance.new("ManualWeld")
  42. ManualWeld14 = Instance.new("ManualWeld")
  43. ManualWeld15 = Instance.new("ManualWeld")
  44. ManualWeld16 = Instance.new("ManualWeld")
  45. ManualWeld17 = Instance.new("ManualWeld")
  46. ManualWeld18 = Instance.new("ManualWeld")
  47. Part19 = Instance.new("Part")
  48. CylinderMesh20 = Instance.new("CylinderMesh")
  49. ManualWeld21 = Instance.new("ManualWeld")
  50. Part22 = Instance.new("Part")
  51. SpecialMesh23 = Instance.new("SpecialMesh")
  52. ManualWeld24 = Instance.new("ManualWeld")
  53. Part25 = Instance.new("Part")
  54. SpecialMesh26 = Instance.new("SpecialMesh")
  55. ManualWeld27 = Instance.new("ManualWeld")
  56. Part28 = Instance.new("Part")
  57. SpecialMesh29 = Instance.new("SpecialMesh")
  58. Model0.Name = "Radio"
  59. Model0.Parent = mas
  60. Part1.Parent = Model0
  61. Part1.CFrame = CFrame.new(-13.6827497, 1.11003494, -8.59759808, -0.657824934, 0.232741699, -0.716308355, 0, 0.951056898, 0.30901581, 0.753170907, 0.203278273, -0.625628948)
  62. Part1.Orientation = Vector3.new(-18, -131.12999, 0)
  63. Part1.Position = Vector3.new(-13.6827497, 1.11003494, -8.59759808)
  64. Part1.Rotation = Vector3.new(-153.709991, -45.75, -160.519989)
  65. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  66. Part1.Size = Vector3.new(0.800000012, 0.400000036, 0.200000003)
  67. Part1.Anchored = true
  68. Part1.BottomSurface = Enum.SurfaceType.Smooth
  69. Part1.BrickColor = BrickColor.new("Dark stone grey")
  70. Part1.CanCollide = false
  71. Part1.Locked = true
  72. Part1.TopSurface = Enum.SurfaceType.Smooth
  73. Part1.brickColor = BrickColor.new("Dark stone grey")
  74. Part1.FormFactor = Enum.FormFactor.Custom
  75. Part1.formFactor = Enum.FormFactor.Custom
  76. BlockMesh2.Parent = Part1
  77. Part3.Parent = Model0
  78. Part3.CFrame = CFrame.new(-13.749856, 0.700034976, -8.96158791, 0.657824934, 0.753170907, 0, 0, 0, -1, -0.753170907, 0.657824934, 0)
  79. Part3.Orientation = Vector3.new(90, 48.8699989, 0)
  80. Part3.Position = Vector3.new(-13.749856, 0.700034976, -8.96158791)
  81. Part3.Rotation = Vector3.new(90, 0, -48.8699989)
  82. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  83. Part3.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  84. Part3.Anchored = true
  85. Part3.BottomSurface = Enum.SurfaceType.Smooth
  86. Part3.BrickColor = BrickColor.new("Really black")
  87. Part3.CanCollide = false
  88. Part3.Locked = true
  89. Part3.TopSurface = Enum.SurfaceType.Smooth
  90. Part3.brickColor = BrickColor.new("Really black")
  91. Part3.FormFactor = Enum.FormFactor.Custom
  92. Part3.formFactor = Enum.FormFactor.Custom
  93. CylinderMesh4.Parent = Part3
  94. Part5.Parent = Model0
  95. Part5.CFrame = CFrame.new(-14.0402555, 0.700034976, -8.64430237, 0, 0.753170907, 0.657824934, 1, 0, 0, 0, 0.657824934, -0.753170907)
  96. Part5.Orientation = Vector3.new(0, 138.869995, 90)
  97. Part5.Position = Vector3.new(-14.0402555, 0.700034976, -8.64430237)
  98. Part5.Rotation = Vector3.new(-180, 41.1299973, -90)
  99. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  100. Part5.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  101. Part5.Anchored = true
  102. Part5.BottomSurface = Enum.SurfaceType.Smooth
  103. Part5.BrickColor = BrickColor.new("Really black")
  104. Part5.CanCollide = false
  105. Part5.Locked = true
  106. Part5.TopSurface = Enum.SurfaceType.Smooth
  107. Part5.brickColor = BrickColor.new("Really black")
  108. Part5.FormFactor = Enum.FormFactor.Custom
  109. Part5.formFactor = Enum.FormFactor.Custom
  110. CylinderMesh6.Parent = Part5
  111. Part7.Parent = Model0
  112. Part7.CFrame = CFrame.new(-14.6343937, 0.790035009, -8.20728779, 0.657824934, 0.753170907, 0, 0, 0, -1, -0.753170907, 0.657824934, 0)
  113. Part7.Orientation = Vector3.new(90, 48.8699989, 0)
  114. Part7.Position = Vector3.new(-14.6343937, 0.790035009, -8.20728779)
  115. Part7.Rotation = Vector3.new(90, 0, -48.8699989)
  116. Part7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  117. Part7.Size = Vector3.new(1, 1, 1)
  118. Part7.Anchored = true
  119. Part7.BottomSurface = Enum.SurfaceType.Smooth
  120. Part7.BrickColor = BrickColor.new("Really black")
  121. Part7.CanCollide = false
  122. Part7.Locked = true
  123. Part7.TopSurface = Enum.SurfaceType.Smooth
  124. Part7.brickColor = BrickColor.new("Really black")
  125. Part7.FormFactor = Enum.FormFactor.Custom
  126. Part7.formFactor = Enum.FormFactor.Custom
  127. CylinderMesh8.Parent = Part7
  128. ManualWeld9.Name = "Part-to-Part Strong Joint"
  129. ManualWeld9.Parent = Part7
  130. ManualWeld9.C0 = CFrame.new(-0.5, 0.5, 0.5, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  131. ManualWeld9.C1 = CFrame.new(1.34000015, -0.800000072, 0.0999965668, 1, 0, -1.50995803e-07, 6.60023616e-15, -1, 4.37113883e-08, -1.50995803e-07, -4.37113883e-08, -1)
  132. ManualWeld9.Part0 = Part7
  133. ManualWeld9.Part1 = Part1
  134. ManualWeld9.part1 = Part1
  135. Part10.Parent = Model0
  136. Part10.CFrame = CFrame.new(-14.1120396, 0.800035, -8.97254753, 0.657824934, 0, 0.753170907, 0, 1, 0, -0.753170907, 0, 0.657824934)
  137. Part10.Orientation = Vector3.new(0, 48.8699989, 0)
  138. Part10.Position = Vector3.new(-14.1120396, 0.800035, -8.97254753)
  139. Part10.Rotation = Vector3.new(0, 48.8699989, 0)
  140. Part10.Color = Color3.new(0.431373, 0.6, 0.792157)
  141. Part10.Size = Vector3.new(3.00000048, 1.60000014, 1.20000005)
  142. Part10.Anchored = true
  143. Part10.BottomSurface = Enum.SurfaceType.Smooth
  144. Part10.BrickColor = BrickColor.new("Medium blue")
  145. Part10.CanCollide = false
  146. Part10.Locked = true
  147. Part10.TopSurface = Enum.SurfaceType.Smooth
  148. Part10.brickColor = BrickColor.new("Medium blue")
  149. Part10.FormFactor = Enum.FormFactor.Custom
  150. Part10.formFactor = Enum.FormFactor.Custom
  151. SpecialMesh11.Parent = Part10
  152. SpecialMesh11.MeshType = Enum.MeshType.Brick
  153. ManualWeld12.Name = "Part-to-Part Strong Joint"
  154. ManualWeld12.Parent = Part10
  155. ManualWeld12.C0 = CFrame.new(-1.50000024, -0.800000072, 0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  156. ManualWeld12.C1 = CFrame.new(-2.29999924, -0.5, 0.899999976, 1, 0, 0, 0, 0, 1, 0, -1, 0)
  157. ManualWeld12.Part0 = Part10
  158. ManualWeld12.Part1 = Part19
  159. ManualWeld12.part1 = Part19
  160. ManualWeld13.Name = "Part-to-Part Strong Joint"
  161. ManualWeld13.Parent = Part10
  162. ManualWeld13.C0 = CFrame.new(-1.50000024, -0.800000072, 0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  163. ManualWeld13.C1 = CFrame.new(-0.699998856, -0.500001907, 0.899999857, 1, 1.50995774e-07, -1.50995803e-07, 1.50995774e-07, 1.94707212e-07, 1, 1.50995803e-07, -1, 1.94707184e-07)
  164. ManualWeld13.Part0 = Part10
  165. ManualWeld13.Part1 = Part7
  166. ManualWeld13.part1 = Part7
  167. ManualWeld14.Name = "Part-to-Part Strong Joint"
  168. ManualWeld14.Parent = Part10
  169. ManualWeld14.C0 = CFrame.new(-1.50000024, -0.800000072, 0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  170. ManualWeld14.C1 = CFrame.new(1.47000122, -1.09000003, 0.109981537, -1, -1.50995803e-07, 0, -1.50995803e-07, 1, -1.50995803e-07, 2.27997332e-14, -1.50995803e-07, -1)
  171. ManualWeld14.Part0 = Part10
  172. ManualWeld14.Part1 = Part1
  173. ManualWeld14.part1 = Part1
  174. ManualWeld15.Name = "Part-to-Part Strong Joint"
  175. ManualWeld15.Parent = Part10
  176. ManualWeld15.C0 = CFrame.new(-1.50000024, 0.800000072, 0.600000024, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  177. ManualWeld15.C1 = CFrame.new(-0.899999619, -0.300000191, 0.5, -1, -0, 1.50995803e-07, 1.50995803e-07, -1.50995803e-07, 1, 2.27997332e-14, 1, 1.50995803e-07)
  178. ManualWeld15.Part0 = Part10
  179. ManualWeld15.Part1 = Part22
  180. ManualWeld15.part1 = Part22
  181. ManualWeld16.Name = "Part-to-Part Strong Joint"
  182. ManualWeld16.Parent = Part10
  183. ManualWeld16.C0 = CFrame.new(-1.50000024, 0.800000072, 0.600000024, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  184. ManualWeld16.C1 = CFrame.new(-2.29999924, -0.299999952, 0.5, -1, -0, 1.50995803e-07, 1.50995803e-07, -1.50995803e-07, 1, 2.27997332e-14, 1, 1.50995803e-07)
  185. ManualWeld16.Part0 = Part10
  186. ManualWeld16.Part1 = Part25
  187. ManualWeld16.part1 = Part25
  188. ManualWeld17.Name = "Part-to-Part Strong Joint"
  189. ManualWeld17.Parent = Part10
  190. ManualWeld17.C0 = CFrame.new(-1.50000024, -0.800000072, 0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  191. ManualWeld17.C1 = CFrame.new(-0.69999969, -0.399999619, -1.29999924, -1.50995803e-07, 1, -1.50995803e-07, -2.27997332e-14, 1.50995803e-07, 1, 1, 1.50995803e-07, -0)
  192. ManualWeld17.Part0 = Part10
  193. ManualWeld17.Part1 = Part5
  194. ManualWeld17.part1 = Part5
  195. ManualWeld18.Name = "Part-to-Part Strong Joint"
  196. ManualWeld18.Parent = Part10
  197. ManualWeld18.C0 = CFrame.new(-1.50000024, -0.800000072, 0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  198. ManualWeld18.C1 = CFrame.new(-1.69999886, -0.399999619, 0.699999809, 1, 1.50995803e-07, -0, -2.27997332e-14, 1.50995803e-07, 1, 1.50995803e-07, -1, 1.50995803e-07)
  199. ManualWeld18.Part0 = Part10
  200. ManualWeld18.Part1 = Part3
  201. ManualWeld18.part1 = Part3
  202. Part19.Parent = Model0
  203. Part19.CFrame = CFrame.new(-13.4240084, 0.790035009, -9.59311008, 0.657824934, 0.753170907, 0, 0, 0, -1, -0.753170907, 0.657824934, 0)
  204. Part19.Orientation = Vector3.new(90, 48.8699989, 0)
  205. Part19.Position = Vector3.new(-13.4240084, 0.790035009, -9.59311008)
  206. Part19.Rotation = Vector3.new(90, 0, -48.8699989)
  207. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  208. Part19.Size = Vector3.new(1, 1, 1)
  209. Part19.Anchored = true
  210. Part19.BottomSurface = Enum.SurfaceType.Smooth
  211. Part19.BrickColor = BrickColor.new("Really black")
  212. Part19.CanCollide = false
  213. Part19.Locked = true
  214. Part19.TopSurface = Enum.SurfaceType.Smooth
  215. Part19.brickColor = BrickColor.new("Really black")
  216. Part19.FormFactor = Enum.FormFactor.Custom
  217. Part19.formFactor = Enum.FormFactor.Custom
  218. CylinderMesh20.Parent = Part19
  219. ManualWeld21.Name = "Part-to-Part Strong Joint"
  220. ManualWeld21.Parent = Part19
  221. ManualWeld21.C0 = CFrame.new(-0.5, 0.5, 0.5, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  222. ManualWeld21.C1 = CFrame.new(0.220003128, -0.390018463, 0.409999847, -1, -0, 1.50995803e-07, 1.50995803e-07, 4.37113883e-08, 1, -6.60023616e-15, 1, -4.37113883e-08)
  223. ManualWeld21.Part0 = Part19
  224. ManualWeld21.Part1 = Part3
  225. ManualWeld21.part1 = Part3
  226. Part22.Parent = Model0
  227. Part22.CFrame = CFrame.new(-14.56499, 1.77003503, -8.43874645, 0.657824934, 0, 0.753170907, 0, 1, 0, -0.753170907, 0, 0.657824934)
  228. Part22.Orientation = Vector3.new(0, 48.8699989, 0)
  229. Part22.Position = Vector3.new(-14.56499, 1.77003503, -8.43874645)
  230. Part22.Rotation = Vector3.new(0, 48.8699989, 0)
  231. Part22.Color = Color3.new(0.388235, 0.372549, 0.384314)
  232. Part22.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  233. Part22.Anchored = true
  234. Part22.BottomSurface = Enum.SurfaceType.Smooth
  235. Part22.BrickColor = BrickColor.new("Dark stone grey")
  236. Part22.CanCollide = false
  237. Part22.Locked = true
  238. Part22.TopSurface = Enum.SurfaceType.Smooth
  239. Part22.brickColor = BrickColor.new("Dark stone grey")
  240. Part22.FormFactor = Enum.FormFactor.Custom
  241. Part22.formFactor = Enum.FormFactor.Custom
  242. SpecialMesh23.Parent = Part22
  243. SpecialMesh23.MeshType = Enum.MeshType.Brick
  244. ManualWeld24.Name = "Part-to-Part Strong Joint"
  245. ManualWeld24.Parent = Part22
  246. ManualWeld24.C0 = CFrame.new(-0.100000001, 0.300000012, 0.100000001, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  247. ManualWeld24.C1 = CFrame.new(-0.0999996662, -0.799999237, -0.100000381, 0, 3.01991605e-07, 1, -1, 0, 0, 0, -1, 3.01991605e-07)
  248. ManualWeld24.Part0 = Part22
  249. ManualWeld24.Part1 = Part28
  250. ManualWeld24.part1 = Part28
  251. Part25.Parent = Model0
  252. Part25.CFrame = CFrame.new(-13.6703539, 1.77003503, -9.46306229, 0.657824934, 0, 0.753170907, 0, 1, 0, -0.753170907, 0, 0.657824934)
  253. Part25.Orientation = Vector3.new(0, 48.8699989, 0)
  254. Part25.Position = Vector3.new(-13.6703539, 1.77003503, -9.46306229)
  255. Part25.Rotation = Vector3.new(0, 48.8699989, 0)
  256. Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
  257. Part25.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  258. Part25.Anchored = true
  259. Part25.BottomSurface = Enum.SurfaceType.Smooth
  260. Part25.BrickColor = BrickColor.new("Dark stone grey")
  261. Part25.CanCollide = false
  262. Part25.Locked = true
  263. Part25.TopSurface = Enum.SurfaceType.Smooth
  264. Part25.brickColor = BrickColor.new("Dark stone grey")
  265. Part25.FormFactor = Enum.FormFactor.Custom
  266. Part25.formFactor = Enum.FormFactor.Custom
  267. SpecialMesh26.Parent = Part25
  268. SpecialMesh26.MeshType = Enum.MeshType.Brick
  269. ManualWeld27.Name = "Part-to-Part Strong Joint"
  270. ManualWeld27.Parent = Part25
  271. ManualWeld27.C0 = CFrame.new(-0.100000001, 0.300000012, 0.100000001, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  272. ManualWeld27.C1 = CFrame.new(-0.0999999046, 0.600000381, -0.100000381, 0, 3.01991605e-07, 1, -1, 0, 0, 0, -1, 3.01991605e-07)
  273. ManualWeld27.Part0 = Part25
  274. ManualWeld27.Part1 = Part28
  275. ManualWeld27.part1 = Part28
  276. Part28.Name = "Part2"
  277. Part28.Parent = Model0
  278. Part28.CFrame = CFrame.new(-14.117672, 2.050035, -8.95090199, -0.0131419972, 0.657824934, -0.753056288, 0.99984777, -5.14011731e-07, -0.0174493399, -0.0114789968, -0.753170907, -0.657724798)
  279. Part28.Orientation = Vector3.new(1, -131.12999, 90)
  280. Part28.Position = Vector3.new(-14.117672, 2.050035, -8.95090199)
  281. Part28.Rotation = Vector3.new(178.479996, -48.8600006, -91.1399994)
  282. Part28.Color = Color3.new(0.388235, 0.372549, 0.384314)
  283. Part28.Size = Vector3.new(0.200000003, 1.60000014, 0.200000003)
  284. Part28.Anchored = true
  285. Part28.BottomSurface = Enum.SurfaceType.Smooth
  286. Part28.BrickColor = BrickColor.new("Dark stone grey")
  287. Part28.CanCollide = false
  288. Part28.Locked = true
  289. Part28.TopSurface = Enum.SurfaceType.Smooth
  290. Part28.brickColor = BrickColor.new("Dark stone grey")
  291. Part28.FormFactor = Enum.FormFactor.Custom
  292. Part28.formFactor = Enum.FormFactor.Custom
  293. SpecialMesh29.Parent = Part28
  294. SpecialMesh29.MeshType = Enum.MeshType.Brick
  295. for i,v in pairs(mas:GetChildren()) do
  296.     v.Parent = workspace
  297.     pcall(function() v:MakeJoints() end)
  298. end
  299. mas:Destroy()
  300. for i,v in pairs(cors) do
  301.     spawn(function()
  302.         pcall(v)
  303.     end)
  304. end
  305. -----------------------------------------------
  306. Player = game.Players.LocalPlayer
  307. PlayerGui = Player.PlayerGui
  308. Cam = workspace.CurrentCamera
  309. Backpack = Player.Backpack
  310. Character = Player.Character
  311. Humanoid = Character.Humanoid
  312. RootPart = Character["HumanoidRootPart"]
  313. Torso = Character["Torso"]
  314. Head = Character["Head"]
  315. game.workspace.Radio.Parent = Character
  316. RightArm = Character["Right Arm"]
  317. LeftArm = Character["Left Arm"]
  318. RightLeg = Character["Right Leg"]
  319. LeftLeg = Character["Left Leg"]
  320. RootJoint = RootPart["RootJoint"]
  321. Neck = Torso["Neck"]
  322. RightShoulder = Torso["Right Shoulder"]
  323. LeftShoulder = Torso["Left Shoulder"]
  324. RightHip = Torso["Right Hip"]
  325. LeftHip = Torso["Left Hip"]
  326. Character.Archivable = true
  327.  
  328. IT = Instance.new
  329. CF = CFrame.new
  330. VT = Vector3.new
  331. RAD = math.rad
  332. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  333. local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ}
  334. local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV}
  335. local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis}
  336. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  337. local R3 = {N=Region3.new}
  338. local De = S.Debris
  339. local WS = workspace
  340. local Lght = S.Lighting
  341. local RepS = S.ReplicatedStorage
  342. local IN = Instance.new
  343. C3 = Color3.new
  344. UD2 = UDim2.new
  345. BRICKC = BrickColor.new
  346. ANGLES = CFrame.Angles
  347. EULER = CFrame.fromEulerAnglesXYZ
  348. COS = math.cos
  349. ACOS = math.acos
  350. SIN = math.sin
  351. ASIN = math.asin
  352. ABS = math.abs
  353. MRANDOM = math.random
  354. FLOOR = math.floor
  355. local plr = game.Players.LocalPlayer
  356. local char = plr.Character
  357. local hum = char.Humanoid
  358. local hed = char.Head
  359. local root = char.HumanoidRootPart
  360. local rootj = root.RootJoint
  361. local tors = char.Torso
  362. local ra = char["Right Arm"]
  363. local la = char["Left Arm"]
  364. local rl = char["Right Leg"]
  365. local ll = char["Left Leg"]
  366. local neck = tors["Neck"]
  367. local mouse = plr:GetMouse()
  368. local equipped = false
  369. local idle = 0
  370. local change = 1
  371. local val = 0
  372. local toim = 0
  373. local idleanim = 0.4
  374. local sine = 0
  375. local Sit = 1
  376. local VALUE1 = false
  377. local VALUE2 = false
  378. local HOLD = false
  379. local KEYHOLD = false
  380. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  381.  
  382. --//=================================\\
  383. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  384. --\\=================================//
  385.  
  386. ArtificialHB = Instance.new("BindableEvent", script)
  387. ArtificialHB.Name = "ArtificialHB"
  388.  
  389. script:WaitForChild("ArtificialHB")
  390.  
  391. frame = Frame_Speed
  392. tf = 0
  393. allowframeloss = false
  394. tossremainder = false
  395. lastframe = tick()
  396. script.ArtificialHB:Fire()
  397.  
  398. game:GetService("RunService").Heartbeat:connect(function(s, p)
  399.     tf = tf + s
  400.     if tf >= frame then
  401.         if allowframeloss then
  402.             script.ArtificialHB:Fire()
  403.             lastframe = tick()
  404.         else
  405.             for i = 1, math.floor(tf / frame) do
  406.                 script.ArtificialHB:Fire()
  407.             end
  408.         lastframe = tick()
  409.         end
  410.         if tossremainder then
  411.             tf = 0
  412.         else
  413.             tf = tf - frame * math.floor(tf / frame)
  414.         end
  415.     end
  416. end)
  417. function swait(num)
  418.     if num == 0 or num == nil then
  419.         game:service("RunService").Stepped:wait(0)
  420.     else
  421.         for i = 0, num do
  422.             game:service("RunService").Stepped:wait(0)
  423.         end
  424.     end
  425. end
  426. ---
  427. Humanoid.DisplayDistanceType = "None"
  428. local MusicID = 841541884
  429. local Music = Instance.new("Sound",Torso)
  430.     Music.SoundId = "rbxassetid://"..MusicID
  431.     Music.Looped = true
  432.     Music.Pitch = 1
  433.     Music.Volume = 5
  434.     Music.Parent = nil
  435.     Music:Resume()
  436. ---
  437. Muted = false
  438. while true do
  439. swait()
  440. Music.Parent = Character.Radio.Part2
  441.    if(not Music or not Music.Parent)then
  442.         local tPos = 0
  443.         pcall(function()tPos = Music.TimePosition; Music:destroy() end)
  444.         Music = Sound(Character,MusicID,1,10,true,false,true)
  445.         Music.Name = 'Music'
  446.         Music.TimePosition = tPos
  447.     end
  448.     Music.SoundId = "rbxassetid://"..MusicID
  449.     Music.Pitch = 1
  450.     Music.Volume = 10
  451.     if(not Muted)then
  452.         Music:Resume()
  453.     else
  454.         Music:Pause()
  455.     end
  456. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement