Advertisement
GodOfDuckz

if it work (only me)

Jan 11th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.66 KB | None | 0 0
  1. --Black Radio (only boss_kiddos)--
  2.  
  3. wait(0.2)
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. warn("THIS IS NOT A SCRIPT, THIS IS JUST A CLOTH")
  89.  
  90. print("made by boss_kiddos used shack's script idk xd")
  91.  
  92. Player = owner
  93. PlayerGui = Player.PlayerGui
  94. Cam = workspace.CurrentCamera
  95. Backpack = Player.Backpack
  96. Character = Player.Character
  97. Humanoid = Character.Humanoid
  98. Mouse = Player:GetMouse()
  99. RootPart = Character["HumanoidRootPart"]
  100. Torso = Character["Torso"]
  101. Head = Character["Head"]
  102. RightArm = Character["Right Arm"]
  103. LeftArm = Character["Left Arm"]
  104. RightLeg = Character["Right Leg"]
  105. LeftLeg = Character["Left Leg"]
  106. RootJoint = RootPart["RootJoint"]
  107. Neck = Torso["Neck"]
  108. RightShoulder = Torso["Right Shoulder"]
  109. LeftShoulder = Torso["Left Shoulder"]
  110. RightHip = Torso["Right Hip"]
  111. LeftHip = Torso["Left Hip"]
  112. local sick = Instance.new("Sound",RootPart)
  113.  
  114. IT = Instance.new
  115. CF = CFrame.new
  116. VT = Vector3.new
  117. RAD = math.rad
  118. C3 = Color3.new
  119. UD2 = UDim2.new
  120. BRICKC = BrickColor.new
  121. ANGLES = CFrame.Angles
  122. EULER = CFrame.fromEulerAnglesXYZ
  123. COS = math.cos
  124. ACOS = math.acos
  125. SIN = math.sin
  126. ASIN = math.asin
  127. ABS = math.abs
  128. MRANDOM = math.random
  129. FLOOR = math.floor
  130.  
  131. --//=================================\\
  132. --|| USEFUL VALUES
  133. --\\=================================//
  134.  
  135. Animation_Speed = 3
  136. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  137. local Speed = 20
  138. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  139. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  140. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  141. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  142. local DAMAGEMULTIPLIER = 1
  143. local ANIM = "Idle"
  144. local ATTACK = false
  145. local EQUIPPED = false
  146. local HOLD = false
  147. local COMBO = 1
  148. local Rooted = false
  149. local SINE = 0
  150. local KEYHOLD = false
  151. local CHANGE = 2 / Animation_Speed
  152. local WALKINGANIM = false
  153. local VALUE1 = false
  154. local VALUE2 = false
  155. local ROBLOXIDLEANIMATION = IT("Animation")
  156. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  157. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  158. --ROBLOXIDLEANIMATION.Parent = Humanoid
  159.  
  160. --//=================================\\
  161. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  162. --\\=================================//
  163.  
  164. ArtificialHB = Instance.new("BindableEvent", script)
  165. ArtificialHB.Name = "ArtificialHB"
  166.  
  167. script:WaitForChild("ArtificialHB")
  168.  
  169. frame = Frame_Speed
  170. tf = 0
  171. allowframeloss = false
  172. tossremainder = false
  173. lastframe = tick()
  174. script.ArtificialHB:Fire()
  175.  
  176. game:GetService("RunService").Heartbeat:connect(function(s, p)
  177. tf = tf + s
  178. if tf >= frame then
  179. if allowframeloss then
  180. script.ArtificialHB:Fire()
  181. lastframe = tick()
  182. else
  183. for i = 1, math.floor(tf / frame) do
  184. script.ArtificialHB:Fire()
  185. end
  186. lastframe = tick()
  187. end
  188. if tossremainder then
  189. tf = 0
  190. else
  191. tf = tf - frame * math.floor(tf / frame)
  192. end
  193. end
  194. end)
  195.  
  196. --//=================================\\
  197. --\\=================================//
  198.  
  199. --//=================================\\
  200. --|| SOME FUNCTIONS
  201. --\\=================================//
  202.  
  203. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  204. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  205. end
  206.  
  207. function PositiveAngle(NUMBER)
  208. if NUMBER >= 0 then
  209. NUMBER = 0
  210. end
  211. return NUMBER
  212. end
  213.  
  214. function NegativeAngle(NUMBER)
  215. if NUMBER <= 0 then
  216. NUMBER = 0
  217. end
  218. return NUMBER
  219. end
  220.  
  221. function Swait(NUMBER)
  222. if NUMBER == 0 or NUMBER == nil then
  223. ArtificialHB.Event:wait()
  224. else
  225. for i = 1, NUMBER do
  226. ArtificialHB.Event:wait()
  227. end
  228. end
  229. end
  230.  
  231. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  232. local NEWMESH = IT(MESH)
  233. if MESH == "SpecialMesh" then
  234. NEWMESH.MeshType = MESHTYPE
  235. if MESHID ~= "nil" and MESHID ~= "" then
  236. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  237. end
  238. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  239. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  240. end
  241. end
  242. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  243. NEWMESH.Scale = SCALE
  244. NEWMESH.Parent = PARENT
  245. return NEWMESH
  246. end
  247.  
  248. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  249. local NEWPART = IT("Part")
  250. NEWPART.formFactor = FORMFACTOR
  251. NEWPART.Reflectance = REFLECTANCE
  252. NEWPART.Transparency = TRANSPARENCY
  253. NEWPART.CanCollide = false
  254. NEWPART.Locked = true
  255. NEWPART.Anchored = true
  256. if ANCHOR == false then
  257. NEWPART.Anchored = false
  258. end
  259. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  260. NEWPART.Name = NAME
  261. NEWPART.Size = SIZE
  262. NEWPART.Position = Torso.Position
  263. NEWPART.Material = MATERIAL
  264. NEWPART:BreakJoints()
  265. NEWPART.Parent = PARENT
  266. return NEWPART
  267. end
  268.  
  269. local function weldBetween(a, b)
  270. local weldd = Instance.new("ManualWeld")
  271. weldd.Part0 = a
  272. weldd.Part1 = b
  273. weldd.C0 = CFrame.new()
  274. weldd.C1 = b.CFrame:inverse() * a.CFrame
  275. weldd.Parent = a
  276. return weldd
  277. end
  278.  
  279.  
  280. function QuaternionFromCFrame(cf)
  281. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  282. local trace = m00 + m11 + m22
  283. if trace > 0 then
  284. local s = math.sqrt(1 + trace)
  285. local recip = 0.5 / s
  286. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  287. else
  288. local i = 0
  289. if m11 > m00 then
  290. i = 1
  291. end
  292. if m22 > (i == 0 and m00 or m11) then
  293. i = 2
  294. end
  295. if i == 0 then
  296. local s = math.sqrt(m00 - m11 - m22 + 1)
  297. local recip = 0.5 / s
  298. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  299. elseif i == 1 then
  300. local s = math.sqrt(m11 - m22 - m00 + 1)
  301. local recip = 0.5 / s
  302. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  303. elseif i == 2 then
  304. local s = math.sqrt(m22 - m00 - m11 + 1)
  305. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  306. end
  307. end
  308. end
  309.  
  310. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  311. local xs, ys, zs = x + x, y + y, z + z
  312. local wx, wy, wz = w * xs, w * ys, w * zs
  313. local xx = x * xs
  314. local xy = x * ys
  315. local xz = x * zs
  316. local yy = y * ys
  317. local yz = y * zs
  318. local zz = z * zs
  319. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  320. end
  321.  
  322. function QuaternionSlerp(a, b, t)
  323. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  324. local startInterp, finishInterp;
  325. if cosTheta >= 0.0001 then
  326. if (1 - cosTheta) > 0.0001 then
  327. local theta = ACOS(cosTheta)
  328. local invSinTheta = 1 / SIN(theta)
  329. startInterp = SIN((1 - t) * theta) * invSinTheta
  330. finishInterp = SIN(t * theta) * invSinTheta
  331. else
  332. startInterp = 1 - t
  333. finishInterp = t
  334. end
  335. else
  336. if (1 + cosTheta) > 0.0001 then
  337. local theta = ACOS(-cosTheta)
  338. local invSinTheta = 1 / SIN(theta)
  339. startInterp = SIN((t - 1) * theta) * invSinTheta
  340. finishInterp = SIN(t * theta) * invSinTheta
  341. else
  342. startInterp = t - 1
  343. finishInterp = t
  344. end
  345. end
  346. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  347. end
  348.  
  349. function Clerp(a, b, t)
  350. local qa = {QuaternionFromCFrame(a)}
  351. local qb = {QuaternionFromCFrame(b)}
  352. local ax, ay, az = a.x, a.y, a.z
  353. local bx, by, bz = b.x, b.y, b.z
  354. local _t = 1 - t
  355. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  356. end
  357.  
  358. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  359. local frame = IT("Frame")
  360. frame.BackgroundTransparency = TRANSPARENCY
  361. frame.BorderSizePixel = BORDERSIZEPIXEL
  362. frame.Position = POSITION
  363. frame.Size = SIZE
  364. frame.BackgroundColor3 = COLOR
  365. frame.BorderColor3 = BORDERCOLOR
  366. frame.Name = NAME
  367. frame.Parent = PARENT
  368. return frame
  369. end
  370.  
  371. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  372. local label = IT("TextLabel")
  373. label.BackgroundTransparency = 1
  374. label.Size = UD2(1, 0, 1, 0)
  375. label.Position = UD2(0, 0, 0, 0)
  376. label.TextColor3 = TEXTCOLOR
  377. label.TextStrokeTransparency = STROKETRANSPARENCY
  378. label.TextTransparency = TRANSPARENCY
  379. label.FontSize = TEXTFONTSIZE
  380. label.Font = TEXTFONT
  381. label.BorderSizePixel = BORDERSIZEPIXEL
  382. label.TextScaled = false
  383. label.Text = TEXT
  384. label.Name = NAME
  385. label.Parent = PARENT
  386. return label
  387. end
  388.  
  389. function NoOutlines(PART)
  390. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  391. end
  392.  
  393. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  394. local NEWWELD = IT(TYPE)
  395. NEWWELD.Part0 = PART0
  396. NEWWELD.Part1 = PART1
  397. NEWWELD.C0 = C0
  398. NEWWELD.C1 = C1
  399. NEWWELD.Parent = PARENT
  400. return NEWWELD
  401. end
  402.  
  403. local S = IT("Sound")
  404. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  405. local NEWSOUND = nil
  406. coroutine.resume(coroutine.create(function()
  407. NEWSOUND = S:Clone()
  408. NEWSOUND.Parent = PARENT
  409. NEWSOUND.Volume = VOLUME
  410. NEWSOUND.Pitch = PITCH
  411. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  412. NEWSOUND:play()
  413. if DOESLOOP == true then
  414. NEWSOUND.Looped = true
  415. else
  416. repeat wait(1) until NEWSOUND.Playing == false
  417. NEWSOUND:remove()
  418. end
  419. end))
  420. return NEWSOUND
  421. end
  422.  
  423. function CFrameFromTopBack(at, top, back)
  424. local right = top:Cross(back)
  425. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  426. end
  427.  
  428. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  429. function WACKYEFFECT(Table)
  430. local TYPE = (Table.EffectType or "Sphere")
  431. local SIZE = (Table.Size or VT(1,1,1))
  432. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  433. local TRANSPARENCY = (Table.Transparency or 0)
  434. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  435. local CFRAME = (Table.CFrame or Torso.CFrame)
  436. local MOVEDIRECTION = (Table.MoveToPos or nil)
  437. local ROTATION1 = (Table.RotationX or 0)
  438. local ROTATION2 = (Table.RotationY or 0)
  439. local ROTATION3 = (Table.RotationZ or 0)
  440. local MATERIAL = (Table.Material or "Neon")
  441. local COLOR = (Table.Color or C3(1,1,1))
  442. local TIME = (Table.Time or 45)
  443. local SOUNDID = (Table.SoundID or nil)
  444. local SOUNDPITCH = (Table.SoundPitch or nil)
  445. local SOUNDVOLUME = (Table.SoundVolume or nil)
  446. coroutine.resume(coroutine.create(function()
  447. local PLAYSSOUND = false
  448. local SOUND = nil
  449. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  450. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  451. PLAYSSOUND = true
  452. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  453. end
  454. EFFECT.Color = COLOR
  455. local MSH = nil
  456. if TYPE == "Sphere" then
  457. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  458. elseif TYPE == "Block" or TYPE == "Box" then
  459. MSH = IT("BlockMesh",EFFECT)
  460. MSH.Scale = SIZE
  461. elseif TYPE == "Wave" then
  462. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  463. elseif TYPE == "Ring" then
  464. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  465. elseif TYPE == "Slash" then
  466. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  467. elseif TYPE == "Round Slash" then
  468. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  469. elseif TYPE == "Swirl" then
  470. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  471. elseif TYPE == "Skull" then
  472. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  473. elseif TYPE == "Crystal" then
  474. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  475. end
  476. if MSH ~= nil then
  477. local MOVESPEED = nil
  478. if MOVEDIRECTION ~= nil then
  479. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  480. end
  481. local GROWTH = SIZE - ENDSIZE
  482. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  483. if TYPE == "Block" then
  484. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  485. else
  486. EFFECT.CFrame = CFRAME
  487. end
  488. for LOOP = 1, TIME+1 do
  489. Swait()
  490. MSH.Scale = MSH.Scale - GROWTH/TIME
  491. if TYPE == "Wave" then
  492. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  493. end
  494. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  495. if TYPE == "Block" then
  496. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  497. else
  498. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  499. end
  500. if MOVEDIRECTION ~= nil then
  501. local ORI = EFFECT.Orientation
  502. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  503. EFFECT.Orientation = ORI
  504. end
  505. end
  506. if PLAYSSOUND == false then
  507. EFFECT:remove()
  508. else
  509. repeat Swait() until SOUND.Playing == false
  510. EFFECT:remove()
  511. end
  512. else
  513. if PLAYSSOUND == false then
  514. EFFECT:remove()
  515. else
  516. repeat Swait() until SOUND.Playing == false
  517. EFFECT:remove()
  518. end
  519. end
  520. end))
  521. end
  522.  
  523. function MakeForm(PART,TYPE)
  524. if TYPE == "Cyl" then
  525. local MSH = IT("CylinderMesh",PART)
  526. elseif TYPE == "Ball" then
  527. local MSH = IT("SpecialMesh",PART)
  528. MSH.MeshType = "Sphere"
  529. elseif TYPE == "Wedge" then
  530. local MSH = IT("SpecialMesh",PART)
  531. MSH.MeshType = "Wedge"
  532. elseif TYPE == "Head" then
  533. local MSH = IT("SpecialMesh",PART)
  534. MSH.Scale = VT(1.25,1.25,1.25)
  535. end
  536. end
  537.  
  538. Debris = game:GetService("Debris")
  539.  
  540. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  541. local DIRECTION = CF(StartPos,EndPos).lookVector
  542. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  543. end
  544.  
  545. function CharacterFade(COLOR,TIMER)
  546. coroutine.resume(coroutine.create(function()
  547. local FADE = IT("Model",Effects)
  548. FADE.Name = "FadingEffect"
  549. for _, c in pairs(Character:GetChildren()) do
  550. if c.ClassName == "Part" and c ~= RootPart then
  551. local FADER = c:Clone()
  552. FADER.Color = COLOR
  553. FADER.CFrame = c.CFrame
  554. FADER.Parent = FADE
  555. FADER.Anchored = true
  556. FADER.Transparency = 0.25+c.Transparency
  557. FADER:BreakJoints()
  558. FADER.Material = "Neon"
  559. if FADER.Name == "Head" then
  560. FADER:ClearAllChildren()
  561. FADER.Size = VT(1,1,1)
  562. end
  563. FADER.CanCollide = false
  564. end
  565. end
  566. local TRANS = 0.75/TIMER
  567. for i = 1, TIMER do
  568. Swait()
  569. for _, c in pairs(FADE:GetChildren()) do
  570. if c.ClassName == "Part" then
  571. c.Transparency = c.Transparency + TRANS
  572. end
  573. end
  574. end
  575. FADE:remove()
  576. end))
  577. end
  578.  
  579.  
  580. --//=================================\\
  581. --|| WEAPON CREATION
  582. --\\=================================//
  583.  
  584. local naeeym2 = Instance.new("BillboardGui",Character)
  585. naeeym2.AlwaysOnTop = true
  586. naeeym2.Size = UDim2.new(5,35,2,35)
  587. naeeym2.StudsOffset = Vector3.new(0,2,0)
  588. naeeym2.Adornee = Head
  589. naeeym2.Name = "Name"
  590.  
  591. local Shades = Instance.new("Part", Head)
  592. Shades.Name = "Shades"
  593. Shades.Shape = Enum.PartType.Ball
  594. Shades.CanCollide = false
  595. Shades.BrickColor = BrickColor.new("Medium stone grey")
  596. Shades.Transparency = 0
  597. Shades.Material = "Grass"
  598. Shades.Size = Vector3.new(0.1, 0.1, 0.1)
  599. Shades.TopSurface = Enum.SurfaceType.Smooth
  600. Shades.BottomSurface = Enum.SurfaceType.Smooth
  601. local Weld = Instance.new("Weld", Shades)
  602. Weld.Part0 = Head
  603. Weld.Part1 = Shades
  604. Weld.C1 = CFrame.new(0, -0.2, 0.15)
  605. ShadesMesh = Instance.new("FileMesh", Shades)
  606. ShadesMesh.MeshId = "http://www.roblox.com/asset/?id=51177557"
  607. ShadesMesh.TextureId = "http://www.roblox.com/asset/?id=51177552"
  608. ShadesMesh.Scale = Vector3.new(1, 1, 1)
  609.  
  610. local tecks2 = Instance.new("TextLabel",naeeym2)
  611. tecks2.BackgroundTransparency = 1
  612. tecks2.TextScaled = true
  613. tecks2.BorderSizePixel = 0
  614. tecks2.Text = "Black Radio"
  615. tecks2.Font = "Cartoon"
  616. tecks2.TextSize = 30
  617. tecks2.TextStrokeTransparency = 0
  618. tecks2.TextColor3 = Color3.new(0,0,0)
  619. tecks2.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  620. tecks2.Size = UDim2.new(1,0,0.5,0)
  621. tecks2.Rotation = 0
  622. tecks2.Parent = naeeym2
  623.  
  624. local BC = Character["Body Colors"]
  625. BC.HeadColor = BrickColor.new("White")
  626. BC.LeftArmColor = BrickColor.new("White")
  627. BC.LeftLegColor = BrickColor.new("White")
  628. BC.RightArmColor = BrickColor.new("White")
  629. BC.RightLegColor = BrickColor.new("White")
  630. BC.TorsoColor = BrickColor.new("Really black")
  631.  
  632. Head.face.Texture = "rbxassetid://1895706696"
  633. shirt = Instance.new("Shirt", Character)
  634. pants = Instance.new("Pants", Character)
  635. shirt.ShirtTemplate = "rbxassetid://155329817"
  636. pants.PantsTemplate = "rbxassetid://155329869"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement