Advertisement
HenloMyDude

ragdollsmash

Aug 25th, 2019
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.24 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. --By your mom
  137. waoh = true
  138. mouse = game.Players.LocalPlayer:GetMouse()
  139. using = false
  140. ragdolling = false
  141. hit = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  142. hit.SoundId = "rbxassetid://535690488"
  143. hit.Volume = 2
  144. hit1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  145. hit1.SoundId = "rbxassetid://535690488"
  146. hit1.Volume = 2
  147. hit2 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  148. hit2.SoundId = "rbxassetid://535690488"
  149. hit2.Volume = 2
  150. hit3 = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  151. hit3.SoundId = "rbxassetid://535690488"
  152. hit3.Volume = 2
  153. hit3.TimePosition = 0.33
  154.  
  155. stand = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  156. stand.SoundId = "rbxassetid://948494432"
  157. stand.Volume = 3
  158. if waoh == true then
  159. stand.SoundId = "rbxassetid://2724937450"
  160. stand.Volume = 10
  161. end
  162.  
  163. ahh = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  164. ahh.SoundId = "rbxassetid://880159023"
  165. ahh.Volume = 10
  166. ahh.Pitch = 1.25
  167.  
  168. ahh2 = ahh:Clone()
  169. ahh2.Parent = game.Players.LocalPlayer.Character.Head
  170.  
  171. ahh3 = ahh:Clone()
  172. ahh3.Parent = game.Players.LocalPlayer.Character.Head
  173.  
  174. ahh4 = ahh:Clone()
  175. ahh4.Parent = game.Players.LocalPlayer.Character.Head
  176.  
  177. IT = Instance.new
  178. CF = CFrame.new
  179. VT = Vector3.new
  180. RAD = math.rad
  181. C3 = Color3.new
  182. UD2 = UDim2.new
  183. BRICKC = BrickColor.new
  184. ANGLES = CFrame.Angles
  185. EULER = CFrame.fromEulerAnglesXYZ
  186. COS = math.cos
  187. ACOS = math.acos
  188. SIN = math.sin
  189. ASIN = math.asin
  190. ABS = math.abs
  191. MRANDOM = math.random
  192. FLOOR = math.floor
  193. ATTACK = false
  194.  
  195.  
  196. print("Press R to ragdollify")
  197. function respawn(key)
  198. key = key:lower()
  199. if key == "t" then
  200. stand:Play()
  201. ATTACK = false
  202. if ragdolling then
  203. ragdolling = false
  204. lshclone.Parent = game.Players.LocalPlayer.Character.Torso
  205. glue:destroy()
  206. rshclone.Parent = game.Players.LocalPlayer.Character.Torso
  207. glue1:destroy()
  208. lhclone.Parent = game.Players.LocalPlayer.Character.Torso
  209. glue11:destroy()
  210. rhclone.Parent = game.Players.LocalPlayer.Character.Torso
  211. glue111:destroy()
  212. collider:destroy()
  213. collider1:destroy()
  214. collider11:destroy()
  215. collider111:destroy()
  216. sensoring:destroy()
  217. sensoring1:destroy()
  218. game.Players.LocalPlayer.Character.Torso.SpotLight:destroy()
  219. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  220. end
  221. end
  222. end
  223.  
  224. BANHAMMER = game.Players.LocalPlayer.Character
  225. Frame_Speed = 1/60
  226.  
  227. --//=================================\\
  228. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  229. --\\=================================//
  230.  
  231. ArtificialHB = Instance.new("BindableEvent", script)
  232. ArtificialHB.Name = "ArtificialHB"
  233.  
  234. script:WaitForChild("ArtificialHB")
  235.  
  236. frame = Frame_Speed
  237. tf = 0
  238. allowframeloss = false
  239. tossremainder = false
  240. lastframe = tick()
  241. script.ArtificialHB:Fire()
  242.  
  243. game:GetService("RunService").Heartbeat:connect(function(s, p)
  244. tf = tf + s
  245. if tf >= frame then
  246. if allowframeloss then
  247. ArtificialHB:Fire()
  248. lastframe = tick()
  249. else
  250. for i = 1, math.floor(tf / frame) do
  251. ArtificialHB:Fire()
  252. end
  253. lastframe = tick()
  254. end
  255. if tossremainder then
  256. tf = 0
  257. else
  258. tf = tf - frame * math.floor(tf / frame)
  259. end
  260. end
  261. end)
  262.  
  263. --//=================================\\
  264. --\\=================================//
  265.  
  266. --//=================================\\
  267. --|| SOME FUNCTIONS
  268. --\\=================================//
  269.  
  270. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  271. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  272. end
  273.  
  274. function PositiveAngle(NUMBER)
  275. if NUMBER >= 0 then
  276. NUMBER = 0
  277. end
  278. return NUMBER
  279. end
  280.  
  281. function NegativeAngle(NUMBER)
  282. if NUMBER <= 0 then
  283. NUMBER = 0
  284. end
  285. return NUMBER
  286. end
  287.  
  288. function Swait(NUMBER)
  289. if NUMBER == 0 or NUMBER == nil then
  290. ArtificialHB.Event:wait()
  291. else
  292. for i = 1, NUMBER do
  293. ArtificialHB.Event:wait()
  294. end
  295. end
  296. end
  297.  
  298. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  299. local NEWMESH = IT(MESH)
  300. if MESH == "SpecialMesh" then
  301. NEWMESH.MeshType = MESHTYPE
  302. if MESHID ~= "nil" and MESHID ~= "" then
  303. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  304. end
  305. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  306. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  307. end
  308. end
  309. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  310. NEWMESH.Scale = SCALE
  311. NEWMESH.Parent = PARENT
  312. return NEWMESH
  313. end
  314.  
  315. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  316. local NEWPART = IT("Part")
  317. NEWPART.formFactor = FORMFACTOR
  318. NEWPART.Reflectance = REFLECTANCE
  319. NEWPART.Transparency = TRANSPARENCY
  320. NEWPART.CanCollide = false
  321. NEWPART.Locked = true
  322. NEWPART.Anchored = true
  323. if ANCHOR == false then
  324. NEWPART.Anchored = false
  325. end
  326. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  327. NEWPART.Name = NAME
  328. NEWPART.Size = SIZE
  329. NEWPART.Position = Torso.Position
  330. NEWPART.Material = MATERIAL
  331. NEWPART:BreakJoints()
  332. NEWPART.Parent = PARENT
  333. return NEWPART
  334. end
  335.  
  336. local function weldBetween(a, b)
  337. local weldd = Instance.new("ManualWeld")
  338. weldd.Part0 = a
  339. weldd.Part1 = b
  340. weldd.C0 = CFrame.new()
  341. weldd.C1 = b.CFrame:inverse() * a.CFrame
  342. weldd.Parent = a
  343. return weldd
  344. end
  345.  
  346.  
  347. function QuaternionFromCFrame(cf)
  348. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  349. local trace = m00 + m11 + m22
  350. if trace > 0 then
  351. local s = math.sqrt(1 + trace)
  352. local recip = 0.5 / s
  353. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  354. else
  355. local i = 0
  356. if m11 > m00 then
  357. i = 1
  358. end
  359. if m22 > (i == 0 and m00 or m11) then
  360. i = 2
  361. end
  362. if i == 0 then
  363. local s = math.sqrt(m00 - m11 - m22 + 1)
  364. local recip = 0.5 / s
  365. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  366. elseif i == 1 then
  367. local s = math.sqrt(m11 - m22 - m00 + 1)
  368. local recip = 0.5 / s
  369. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  370. elseif i == 2 then
  371. local s = math.sqrt(m22 - m00 - m11 + 1)
  372. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  373. end
  374. end
  375. end
  376.  
  377. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  378. local xs, ys, zs = x + x, y + y, z + z
  379. local wx, wy, wz = w * xs, w * ys, w * zs
  380. local xx = x * xs
  381. local xy = x * ys
  382. local xz = x * zs
  383. local yy = y * ys
  384. local yz = y * zs
  385. local zz = z * zs
  386. 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))
  387. end
  388.  
  389. function QuaternionSlerp(a, b, t)
  390. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  391. local startInterp, finishInterp;
  392. if cosTheta >= 0.0001 then
  393. if (1 - cosTheta) > 0.0001 then
  394. local theta = ACOS(cosTheta)
  395. local invSinTheta = 1 / SIN(theta)
  396. startInterp = SIN((1 - t) * theta) * invSinTheta
  397. finishInterp = SIN(t * theta) * invSinTheta
  398. else
  399. startInterp = 1 - t
  400. finishInterp = t
  401. end
  402. else
  403. if (1 + cosTheta) > 0.0001 then
  404. local theta = ACOS(-cosTheta)
  405. local invSinTheta = 1 / SIN(theta)
  406. startInterp = SIN((t - 1) * theta) * invSinTheta
  407. finishInterp = SIN(t * theta) * invSinTheta
  408. else
  409. startInterp = t - 1
  410. finishInterp = t
  411. end
  412. end
  413. 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
  414. end
  415.  
  416. function Clerp(a, b, t)
  417. local qa = {QuaternionFromCFrame(a)}
  418. local qb = {QuaternionFromCFrame(b)}
  419. local ax, ay, az = a.x, a.y, a.z
  420. local bx, by, bz = b.x, b.y, b.z
  421. local _t = 1 - t
  422. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  423. end
  424.  
  425. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  426. local frame = IT("Frame")
  427. frame.BackgroundTransparency = TRANSPARENCY
  428. frame.BorderSizePixel = BORDERSIZEPIXEL
  429. frame.Position = POSITION
  430. frame.Size = SIZE
  431. frame.BackgroundColor3 = COLOR
  432. frame.BorderColor3 = BORDERCOLOR
  433. frame.Name = NAME
  434. frame.Parent = PARENT
  435. return frame
  436. end
  437.  
  438. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  439. local label = IT("TextLabel")
  440. label.BackgroundTransparency = 1
  441. label.Size = UD2(1, 0, 1, 0)
  442. label.Position = UD2(0, 0, 0, 0)
  443. label.TextColor3 = TEXTCOLOR
  444. label.TextStrokeTransparency = STROKETRANSPARENCY
  445. label.TextTransparency = TRANSPARENCY
  446. label.FontSize = TEXTFONTSIZE
  447. label.Font = TEXTFONT
  448. label.BorderSizePixel = BORDERSIZEPIXEL
  449. label.TextScaled = false
  450. label.Text = TEXT
  451. label.Name = NAME
  452. label.Parent = PARENT
  453. return label
  454. end
  455.  
  456. function NoOutlines(PART)
  457. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  458. end
  459.  
  460. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  461. local NEWWELD = IT(TYPE)
  462. NEWWELD.Part0 = PART0
  463. NEWWELD.Part1 = PART1
  464. NEWWELD.C0 = C0
  465. NEWWELD.C1 = C1
  466. NEWWELD.Parent = PARENT
  467. return NEWWELD
  468. end
  469.  
  470. local S = IT("Sound")
  471. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  472. local NEWSOUND = nil
  473. coroutine.resume(coroutine.create(function()
  474. NEWSOUND = S:Clone()
  475. NEWSOUND.Parent = PARENT
  476. NEWSOUND.Volume = VOLUME
  477. NEWSOUND.Pitch = PITCH
  478. NEWSOUND.SoundId = "rbxassetid://"..ID
  479. NEWSOUND:play()
  480. if DOESLOOP == true then
  481. NEWSOUND.Looped = true
  482. else
  483. repeat wait(1) until NEWSOUND.Playing == false
  484. NEWSOUND:remove()
  485. end
  486. end))
  487. return NEWSOUND
  488. end
  489.  
  490. function CFrameFromTopBack(at, top, back)
  491. local right = top:Cross(back)
  492. 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)
  493. end
  494.  
  495. --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, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
  496.  
  497. function MakeForm(PART,TYPE)
  498. if TYPE == "Cyl" then
  499. local MSH = IT("CylinderMesh",PART)
  500. elseif TYPE == "Ball" then
  501. local MSH = IT("SpecialMesh",PART)
  502. MSH.MeshType = "Sphere"
  503. elseif TYPE == "Wedge" then
  504. local MSH = IT("SpecialMesh",PART)
  505. MSH.MeshType = "Wedge"
  506. end
  507. end
  508.  
  509. Debris = game:GetService("Debris")
  510.  
  511. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  512. local DIRECTION = CF(StartPos,EndPos).lookVector
  513. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  514. end
  515.  
  516. --//=================================\\
  517. --|| WEAPON CREATION
  518. --\\=================================//
  519.  
  520. BODY = {}
  521.  
  522. function refit()
  523. game.Players.LocalPlayer.Character.Parent = workspace
  524. for e = 1, #BODY do
  525. if BODY[e] ~= nil then
  526. local STUFF = BODY[e]
  527. local PART = STUFF[1]
  528. local PARENT = STUFF[2]
  529. local MATERIAL = STUFF[3]
  530. local COLOR = STUFF[4]
  531. local TRANSPARENCY = STUFF[5]
  532. if PART:IsA("BasePart") and PART ~= game.Players.LocalPlayer.Character.HumanoidRootPart then
  533. PART.Material = MATERIAL
  534. PART.Color = COLOR
  535. PART.Transparency = TRANSPARENCY
  536. end
  537. if PART.Parent ~= PARENT then
  538. game.Players.LocalPlayer.Character.Humanoid:remove()
  539. PART.Parent = PARENT
  540. Humanoid = IT("Humanoid",game.Players.LocalPlayer.Character)
  541. end
  542. end
  543. end
  544. end
  545.  
  546. game.Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  547. refit()
  548. end)
  549.  
  550.  
  551. --//=================================\\
  552. --|| DAMAGING
  553. --\\=================================//
  554.  
  555. function ApplyDamage(Humanoid,Damage)
  556. Damage = Damage * DAMAGEMULTIPLIER
  557. if Humanoid.Health < 2000 then
  558. if Humanoid.Health - Damage > 0 then
  559. Humanoid.Health = Humanoid.Health - Damage
  560. else
  561. Humanoid.Parent:BreakJoints()
  562. end
  563. else
  564. Humanoid.Parent:BreakJoints()
  565. end
  566. end
  567.  
  568. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  569. for index, CHILD in pairs(workspace:GetDescendants()) do
  570. if CHILD.ClassName == "Model" and CHILD ~= Character then
  571. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  572. if HUM then
  573. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  574. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  575. if INSTAKILL == true then
  576. CHILD:BreakJoints()
  577. else
  578. local DMG = MRANDOM(MINDMG, MAXDMG)
  579. ApplyDamage(HUM, DMG)
  580. end
  581. if FLING > 0 then
  582. for _, c in pairs(CHILD:GetChildren()) do
  583. if c:IsA("BasePart") then
  584. local bv = Instance.new("BodyVelocity")
  585. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  586. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  587. bv.Parent = c
  588. Debris:AddItem(bv, 0.05)
  589. end
  590. end
  591. end
  592. end
  593. end
  594. end
  595. end
  596. end
  597.  
  598. local kickedtable = {}
  599.  
  600. function BAN(People)
  601. local BANFOLDER = IT("Folder",Effects)
  602. local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
  603. BANFOLDER.Parent = People
  604. naeeym2.AlwaysOnTop = false
  605. naeeym2.Size = UDim2.new(5,35,2,35)
  606. naeeym2.StudsOffset = Vector3.new(0,1,0)
  607. naeeym2.Name = "AAAA"
  608. local tecks2 = Instance.new("TextLabel",naeeym2)
  609. tecks2.BackgroundTransparency = 1
  610. tecks2.TextScaled = true
  611. tecks2.BorderSizePixel = 0
  612. tecks2.Text = "BANNED"
  613. tecks2.Font = "Code"
  614. tecks2.TextSize = 30
  615. tecks2.TextStrokeTransparency = 1
  616. tecks2.TextColor3 = Color3.new(1,0,0)
  617. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  618. tecks2.Size = UDim2.new(1,0,0.5,0)
  619. tecks2.Parent = naeeym2
  620. People:Kick(""..BanCommand)
  621. end
  622.  
  623. function BANNEAREST(POS,RANGE)
  624. for i,v in ipairs(workspace:GetChildren()) do
  625. local body = v:GetChildren()
  626. for part = 1, #body do
  627. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  628. if(body[part].Position - POS).Magnitude < RANGE then
  629. if v:FindFirstChildOfClass("Humanoid") then
  630. local Person = game:GetService("Players"):GetPlayerFromCharacter(v)
  631. table.insert(kickedtable,Person.Name)
  632. wait()
  633. BAN(Person)
  634. end
  635. end
  636. end
  637. end
  638. end
  639. end
  640.  
  641. Torso = game.Players.LocalPlayer.Character.Torso
  642.  
  643. local Effects = IT("Folder", game.Players.LocalPlayer.Character)
  644. Effects.Name = "Effects"
  645.  
  646. function WACKYEFFECT(Table)
  647. local TYPE = (Table.EffectType or "Sphere")
  648. local SIZE = (Table.Size or VT(1,1,1))
  649. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  650. local TRANSPARENCY = (Table.Transparency or 0)
  651. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  652. local CFRAME = (Table.CFrame or Torso.CFrame)
  653. local MOVEDIRECTION = (Table.MoveToPos or nil)
  654. local ROTATION1 = (Table.RotationX or 0)
  655. local ROTATION2 = (Table.RotationY or 0)
  656. local ROTATION3 = (Table.RotationZ or 0)
  657. local MATERIAL = (Table.Material or "Neon")
  658. local COLOR = (Table.Color or C3(1,1,1))
  659. local TIME = (Table.Time or 45)
  660. local SOUNDID = (Table.SoundID or nil)
  661. local SOUNDPITCH = (Table.SoundPitch or nil)
  662. local SOUNDVOLUME = (Table.SoundVolume or nil)
  663. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  664. local BOOMERANG = (Table.Boomerang or 0)
  665. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  666. coroutine.resume(coroutine.create(function()
  667. local PLAYSSOUND = false
  668. local SOUND = nil
  669. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  670. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  671. PLAYSSOUND = true
  672. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  673. end
  674. EFFECT.Color = COLOR
  675. local MSH = nil
  676. if TYPE == "Sphere" then
  677. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  678. elseif TYPE == "Block" or TYPE == "Box" then
  679. MSH = IT("BlockMesh",EFFECT)
  680. MSH.Scale = SIZE
  681. elseif TYPE == "Wave" then
  682. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  683. elseif TYPE == "Ring" then
  684. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  685. elseif TYPE == "Slash" then
  686. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  687. elseif TYPE == "Round Slash" then
  688. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  689. elseif TYPE == "Swirl" then
  690. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  691. elseif TYPE == "Skull" then
  692. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  693. elseif TYPE == "Crystal" then
  694. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  695. end
  696. if MSH ~= nil then
  697. local BOOMR1 = 1+BOOMERANG/50
  698. local BOOMR2 = 1+SIZEBOOMERANG/50
  699. local MOVESPEED = nil
  700. if MOVEDIRECTION ~= nil then
  701. if USEBOOMERANGMATH == true then
  702. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  703. else
  704. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  705. end
  706. end
  707. local GROWTH = nil
  708. if USEBOOMERANGMATH == true then
  709. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  710. else
  711. GROWTH = (SIZE - ENDSIZE)
  712. end
  713. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  714. if TYPE == "Block" then
  715. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  716. else
  717. EFFECT.CFrame = CFRAME
  718. end
  719. if USEBOOMERANGMATH == true then
  720. for LOOP = 1, TIME+1 do
  721. Swait()
  722. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  723. if TYPE == "Wave" then
  724. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  725. end
  726. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  727. if TYPE == "Block" then
  728. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  729. else
  730. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  731. end
  732. if MOVEDIRECTION ~= nil then
  733. local ORI = EFFECT.Orientation
  734. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  735. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  736. end
  737. end
  738. else
  739. for LOOP = 1, TIME+1 do
  740. Swait()
  741. MSH.Scale = MSH.Scale - GROWTH/TIME
  742. if TYPE == "Wave" then
  743. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  744. end
  745. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  746. if TYPE == "Block" then
  747. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  748. else
  749. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  750. end
  751. if MOVEDIRECTION ~= nil then
  752. local ORI = EFFECT.Orientation
  753. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  754. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  755. end
  756. end
  757. end
  758. EFFECT.Transparency = 1
  759. if PLAYSSOUND == false then
  760. EFFECT:remove()
  761. else
  762. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  763. EFFECT:remove()
  764. end
  765. else
  766. if PLAYSSOUND == false then
  767. EFFECT:remove()
  768. else
  769. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  770. EFFECT:remove()
  771. end
  772. end
  773. end))
  774. end
  775.  
  776. Animation_Speed = 3
  777. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  778. local DAMAGEMULTIPLIER = 1
  779. local ANIM = "Idle"
  780. local ATTACK = false
  781. local EQUIPPED = false
  782. local HOLD = false
  783. local COMBO = 1
  784. local Rooted = false
  785. local SINE = 0
  786. local KEYHOLD = false
  787. local CHANGE = 2 / Animation_Speed
  788. local WALKINGANIM = false
  789. local VALUE1 = false
  790. local VALUE2 = false
  791.  
  792.  
  793. CFuncs = {
  794. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  795.  
  796. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  797. RemoveOutlines(Part)
  798. return Part
  799. end
  800. }
  801. ,
  802. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  803.  
  804. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  805. if Mesh == "SpecialMesh" then
  806. Msh.MeshType = MeshType
  807. Msh.MeshId = MeshId
  808. end
  809. return Msh
  810. end
  811. }
  812. ,
  813. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  814.  
  815. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  816. if Mesh == "SpecialMesh" then
  817. Msh.MeshType = MeshType
  818. Msh.MeshId = MeshId
  819. end
  820. return Msh
  821. end
  822. }
  823. ,
  824. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  825.  
  826. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  827. return Weld
  828. end
  829. }
  830. ,
  831. Sound = {Create = function(id, par, vol, pit,Extra)
  832.  
  833. coroutine.resume(coroutine.create(function()
  834.  
  835. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
  836. wait()
  837. if Extra ~= nil then
  838.  
  839. local dis = Instance.new("DistortionSoundEffect",S)
  840. dis.Level = Extra
  841. end
  842.  
  843. S:play()
  844. game:GetService("Debris"):AddItem(S, 6)
  845. end
  846. ))
  847. end
  848. }
  849. ,
  850. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  851.  
  852. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  853. return fp
  854. end
  855. }
  856. }
  857.  
  858.  
  859.  
  860.  
  861. so = function(id, par, vol, pit,Extra)
  862.  
  863. CFuncs.Sound.Create(id, par, vol, pit,Extra)
  864.  
  865.  
  866. end
  867.  
  868.  
  869. mouse.KeyDown:connect(respawn)
  870. function ragdoll(key)
  871. key = key:lower()
  872. if key == "r" then
  873. so("880159023", BANHAMMER.Head,4, 1.25,.95)
  874. ahh:Play()
  875. ahh2:Play()
  876. ahh3:Play()
  877. ahh4:Play()
  878. if not ragdolling then
  879. ragdolling = true
  880. ATTACK = true
  881. WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = BANHAMMER.Head.CFrame, MoveToPos = BANHAMMER.Head.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  882. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(2,0.5,2), Size2 = VT(5,0.5,5), Transparency = 0, Transparency2 = 1, CFrame = BANHAMMER.Head.CFrame, MoveToPos = BANHAMMER.Head.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  883.  
  884. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,0.5,5), Transparency = 0, Transparency2 = 1, CFrame = BANHAMMER.Head.CFrame, MoveToPos = BANHAMMER.Head.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  885.  
  886.  
  887. local light = Instance.new("SpotLight", game.Players.LocalPlayer.Character.Torso)
  888. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  889. lshclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  890. rshclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  891. lhclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  892. rhclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  893. local leftarm = game.Players.LocalPlayer.Character["Left Arm"]
  894. local rightrm = game.Players.LocalPlayer.Character["Right Arm"]
  895. local leftleg = game.Players.LocalPlayer.Character["Left Leg"]
  896. local rightleg = game.Players.LocalPlayer.Character["Right Leg"]
  897. game.Players.LocalPlayer.Character.Torso["Left Hip"]:destroy()
  898. local head = game.Players.LocalPlayer.Character.Head
  899. glue = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  900. glue.Part0 = game.Players.LocalPlayer.Character.Torso
  901. glue.Part1 = leftleg
  902. glue.Name = "Left leg"
  903. collider = Instance.new("Part", leftleg)
  904. collider.Position = Vector3.new(0,999,0)
  905. collider.Size = Vector3.new(1.5, 1, 1)
  906. collider.Shape = "Cylinder"
  907. local weld = Instance.new("Weld", collider)
  908. weld.Part0 = leftleg
  909. weld.Part1 = collider
  910. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  911. collider.TopSurface = "Smooth"
  912. collider.BottomSurface = "Smooth"
  913. collider.formFactor = "Symmetric"
  914. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  915. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  916. collider.Transparency = 1
  917. ------------
  918. game.Players.LocalPlayer.Character.Torso["Right Hip"]:destroy()
  919. glue1 = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  920. glue1.Part0 = game.Players.LocalPlayer.Character.Torso
  921. glue1.Part1 = rightleg
  922. glue1.Name = "Right leg"
  923. collider1 = Instance.new("Part", rightleg)
  924. collider1.Position = Vector3.new(0,9999,0)
  925. collider1.Size = Vector3.new(1.5, 1, 1)
  926. collider1.Shape = "Cylinder"
  927. local weld1 = Instance.new("Weld", collider1)
  928. weld1.Part0 = rightleg
  929. weld1.Part1 = collider1
  930. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  931. collider1.TopSurface = "Smooth"
  932. collider1.BottomSurface = "Smooth"
  933. collider1.formFactor = "Symmetric"
  934. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  935. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  936. collider1.Transparency = 1
  937. ------------
  938. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:destroy()
  939. glue11 = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  940. glue11.Part0 = game.Players.LocalPlayer.Character.Torso
  941. glue11.Part1 = rightrm
  942. glue11.Name = "Right shoulder"
  943. collider11 = Instance.new("Part", rightrm)
  944. collider11.Position = Vector3.new(0,9999,0)
  945. collider11.Size = Vector3.new(1.8,1,1)
  946. collider11.Shape = "Cylinder"
  947. local weld11 = Instance.new("Weld", collider11)
  948. weld11.Part0 = rightrm
  949. weld11.Part1 = collider11
  950. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  951. collider11.TopSurface = "Smooth"
  952. collider11.BottomSurface = "Smooth"
  953. collider11.formFactor = "Symmetric"
  954. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  955. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  956. collider11.Transparency = 1
  957. ------------
  958. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:destroy()
  959. glue111 = Instance.new("Glue", game.Players.LocalPlayer.Character.Torso)
  960. glue111.Part0 = game.Players.LocalPlayer.Character.Torso
  961. glue111.Part1 = leftarm
  962. glue111.Name = "Left shoulder"
  963. collider111 = Instance.new("Part", leftarm)
  964. collider111.Position = Vector3.new(0,9999,0)
  965. collider111.Size = Vector3.new(1.5, 1, 1)
  966. collider111.Shape = "Cylinder"
  967. local weld111 = Instance.new("Weld", collider111)
  968. weld111.Part0 = leftarm
  969. weld111.Part1 = collider111
  970. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  971. collider111.TopSurface = "Smooth"
  972. collider111.BottomSurface = "Smooth"
  973. collider111.formFactor = "Symmetric"
  974. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  975. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  976. collider111.Transparency = 1
  977. -----------------
  978. sensoring = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  979. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  980. sensoring.CanCollide = false
  981. sensoring.Position = game.Players.LocalPlayer.Character.Torso.Position
  982. local welder = Instance.new("Weld", sensoring)
  983. welder.Part0 = game.Players.LocalPlayer.Character.Torso
  984. welder.Part1 = sensoring
  985. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  986. sensoring.Transparency = 1
  987. -----------------
  988. sensoring1 = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
  989. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  990. sensoring1.CanCollide = false
  991. sensoring1.Position = game.Players.LocalPlayer.Character.Torso.Position
  992. local welder1 = Instance.new("Weld", sensoring)
  993. welder1.Part0 = game.Players.LocalPlayer.Character.Torso
  994. welder1.Part1 = sensoring1
  995. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  996. sensoring1.Transparency = 1
  997.  
  998. for i = 1, 5 do
  999. WACKYEFFECT({
  1000. Time = 35,
  1001. EffectType = "Wave",
  1002. Size = VT(5, 0.5, 5),
  1003. Size2 = VT(15 + i * 3, 0, 15 + i * 3),
  1004. Transparency = 0.7,
  1005. Transparency2 = 1,
  1006. CFrame = CF(BANHAMMER.Head.CFrame * CF(0, 0, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1007. MoveToPos = nil,
  1008. RotationX = 0,
  1009. RotationY = 0,
  1010. RotationZ = 0,
  1011. Material = "Neon",
  1012. Color = C3(1, 1, 1),
  1013. SoundID = nil,
  1014. SoundPitch = nil,
  1015. SoundVolume = nil
  1016. })
  1017. end
  1018. local function touch()
  1019. if not using then
  1020. using = true
  1021. game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health - 2
  1022. local Math = math.random(1,4)
  1023. if Math == 1 then
  1024. hit:Play()
  1025. end
  1026. if Math == 2 then
  1027. hit1:Play()
  1028. end
  1029. if Math == 3 then
  1030. hit2:Play()
  1031. end
  1032. if Math == 4 then
  1033. hit3:Play()
  1034. end
  1035. wait(0.1)
  1036. using = false
  1037. end
  1038. end
  1039. sensoring.Touched:connect(touch)
  1040. sensoring1.Touched:connect(touch)
  1041. end
  1042.  
  1043. end
  1044. end
  1045. mouse.KeyDown:connect(ragdoll)
  1046. --di ent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement