Advertisement
Guest User

Gud Doge

a guest
Apr 19th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.98 KB | None | 0 0
  1. warn("Made by Meti2000 <3")
  2. game.Workspace.IceTea_Bottle.Humanoid.MaxHealth = math.huge
  3. m = game:service'Players'.LocalPlayer:GetMouse()
  4. paly = game.Players.LocalPlayer
  5. char = paly.Character
  6. ypcall(function()
  7. shirt = Instance.new("Shirt", char)
  8. shirt.Name = "Shirt"
  9. pants = Instance.new("Pants", char)
  10. pants.Name = "Pants"
  11. char.Shirt.ShirtTemplate = "rbxassetid://654790833"
  12. char.Pants.PantsTemplate = "rbxassetid://576054998"
  13. end)
  14. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  15. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  16. txtfag.Adornee = Hello
  17. txtfag.Name = "Hoi."
  18. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  19. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  20. local textfag = Instance.new("TextLabel", txtfag)
  21. textfag.Size = UDim2.new(6, 0, 1, 0)
  22. textfag.FontSize = "Size10"
  23. textfag.TextScaled = true
  24. textfag.TextTransparency = 0
  25. textfag.BackgroundTransparency = 1
  26. textfag.TextTransparency = 0
  27. textfag.TextStrokeTransparency = 0
  28. textfag.Font = "Cartoon"
  29. textfag.TextStrokeColor3 = Color3.fromRGB(0,0,0)
  30. textfag.Text = "y0s"
  31. wait(0.6)
  32. textfag.Text = "Let's chill .o."
  33. wait(0.9)
  34. textfag.Text = paly..." The Doge"
  35.  
  36. do
  37. local filteredMessages = { ['____'] = '___' };
  38. local onPropertyChanged = function (obj)
  39. if (obj:isDescendantOf (workspace)) then
  40. local objText = obj.Text;
  41.  
  42. if (objText ~= '___' and objText:find '(%S)') then
  43. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  44. obj.Text = filteredMessages [objText];
  45. elseif (not filteredMessages [objText]) then
  46. obj.Text = '___';
  47.  
  48. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  49.  
  50. filteredMessages [objText] = filtered;
  51. filteredMessages [filtered] = filtered;
  52.  
  53. obj.Text = filtered;
  54. end;
  55. end;
  56. end;
  57. end;
  58.  
  59. local newInstance = Instance.new;
  60. Instance = {
  61. new = function (class, parent)
  62. local obj = newInstance (class, parent);
  63.  
  64. if (pcall (function()return obj.Text;end)) then
  65. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  66. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  67. end;
  68.  
  69. return obj;
  70. end;
  71. };
  72. end;
  73. plr = game.Players.LocalPlayer
  74. mouse = plr:GetMouse()
  75. part = nil
  76. bp = nil
  77. particles = nil
  78. base = Instance.new("ScreenGui",plr.PlayerGui)
  79. bbg = Instance.new("BillboardGui",plr.Character.Head)
  80. bbg.Size = UDim2.new(0,200,0,50)
  81. bbg.StudsOffset = Vector3.new(0,5,0)
  82. bbgTl = Instance.new("TextLabel",bbg)
  83. bbgTl.BackgroundTransparency = 1
  84. bbgTl.Size = UDim2.new(10,0,1,0)
  85. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  86. bbgTl.Font = "Highway"
  87. bbgTl.Text = " "
  88. bbgTl.TextSize = 40
  89. bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
  90. bbgTl.TextStrokeTransparency = 0
  91. bbgTl.TextWrapped = true
  92. plr.Chatted:connect(function(msg)
  93. bbgTl.Text = msg
  94. wait(5)
  95. if bbgTl.Text == msg then
  96. bbgTl.Text = " "
  97. while true do
  98. textfag.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
  99. bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
  100. wait(.1)
  101. end
  102. end
  103. end)
  104. Player=game:GetService("Players").LocalPlayer
  105. Character=Player.Character
  106. PlayerGui=Player.PlayerGui
  107. Backpack=Player.Backpack
  108. Torso=Character.Torso
  109. Head=Character.Head
  110. Humanoid=Character.Humanoid
  111. m=Instance.new('Model',Character)
  112. LeftArm=Character["Left Arm"]
  113. LeftLeg=Character["Left Leg"]
  114. RightArm=Character["Right Arm"]
  115. RightLeg=Character["Right Leg"]
  116. LS=Torso["Left Shoulder"]
  117. LH=Torso["Left Hip"]
  118. RS=Torso["Right Shoulder"]
  119. RH=Torso["Right Hip"]
  120. Face = Head.face
  121. Neck=Torso.Neck
  122. --it=Instance.new
  123. local hair3 = Instance.new("Part",char)
  124. hair3.Material="Neon"
  125. hair3.CanCollide=false
  126. hair3.Size=Vector3.new(0.1,0.1,0.1)
  127. hair3.Transparency=0
  128.  
  129. local msh = Instance.new("SpecialMesh",hair3)
  130. local text = Instance.new("Texture",hair3)
  131. text.Texture="rbxassetid://151778895"
  132. msh.MeshId="rbxassetid://151778863"
  133. msh.Scale=Vector3.new(1.01, 1.01, 1.01)
  134.  
  135. local w = Instance.new("Weld",hair3)
  136. w.Part1=hair3
  137. w.Part0=Head
  138. w.C0=CFrame.new(0,0.12,-0.23)
  139. attacktype=1
  140. vt=Vector3.new
  141. cf=CFrame.new
  142. euler=CFrame.fromEulerAnglesXYZ
  143. angles=CFrame.Angles
  144. cloaked=false
  145. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  146. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  147. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  148. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  149. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  150. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  151. RootPart=Character.HumanoidRootPart
  152. RootJoint=RootPart.RootJoint
  153. RootCF=euler(-1.57,0,3.14)
  154. attack = false
  155. attackdebounce = false
  156. deb=false
  157. equipped=true
  158. hand=false
  159. MMouse=nil
  160. combo=0
  161. mana=0
  162. trispeed=.2
  163. attackmode='none'
  164. local idle=0
  165. local Anim="Idle"
  166. local gun=false
  167. local shoot=false
  168. player=nil
  169. mana=0
  170.  
  171. local defensevalue = 999999
  172. local speedvalue = 1
  173. local damagevalue = 1
  174. local cf = CFrame.new-- make things ez :3
  175. local mr = math.rad
  176. local angles = CFrame.Angles
  177. local ud = UDim2.new
  178. local c3 = Color3.new
  179.  
  180. local stats=Instance.new('Folder',Character)
  181. stats.Name='Stats'
  182. local block=Instance.new('BoolValue',stats)
  183. block.Name='Block'
  184. block.Value=false
  185. local stun=Instance.new('BoolValue',stats)
  186. stun.Name='Stun'
  187. stun.Value=false
  188. local defense=Instance.new('NumberValue',stats)
  189. defense.Name='Defence'
  190. defense.Value=defensevalue
  191. local speed=Instance.new('NumberValue',stats)
  192. speed.Name='Speed'
  193. speed.Value=speedvalue
  194. local damagea=Instance.new('NumberValue',stats)
  195. damagea.Name='Damage'
  196. damagea.Value=damagevalue
  197.  
  198. Humanoid = Character.Humanoid
  199. if Humanoid:FindFirstChild("Animator")then
  200. Humanoid:FindFirstChild("Animator"):Destroy()
  201. end
  202.  
  203. Humanoid.WalkSpeed = 3
  204.  
  205. music = Instance.new("Sound", Torso)
  206. music.SoundId = "http://www.roblox.com/asset/?id=182408067"
  207. music.Volume = math.huge
  208. music.Looped = true
  209. wait(0.1)
  210. music:Play()
  211.  
  212. Colorpart1 = Torso.BrickColor.r
  213. Colorpart2 = Torso.BrickColor.g
  214. Colorpart3 = Torso.BrickColor.b
  215.  
  216. CloakEffectLight2 = Instance.new("PointLight", Torso)
  217. CloakEffectLight2.Color = Color3.new(Colorpart1, Colorpart2, Colorpart3)
  218. CloakEffectLight2.Range = 10
  219. CloakEffectLight2.Brightness = 10
  220. CloakEffectLight2.Enabled = true
  221.  
  222. mouse=Player:GetMouse()
  223. --save shoulders
  224. RSH, LSH=nil, nil
  225. --welds
  226. RW, LW=Instance.new("Motor"), Instance.new("Motor")
  227. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  228. LH=Torso["Left Hip"]
  229. RH=Torso["Right Hip"]
  230. TorsoColor=Torso.BrickColor
  231. function NoOutline(Part)
  232. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  233. end
  234. player=Player
  235. ch=Character
  236. RSH=ch.Torso["Right Shoulder"]
  237. LSH=ch.Torso["Left Shoulder"]
  238. --
  239. RSH.Parent=nil
  240. LSH.Parent=nil
  241. --
  242. RW.Name="Right Shoulder"
  243. RW.Part0=ch.Torso
  244. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  245. RW.C1=cf(0, 0.5, 0)
  246. RW.Part1=ch["Right Arm"]
  247. RW.Parent=ch.Torso
  248. --
  249. LW.Name="Left Shoulder"
  250. LW.Part0=ch.Torso
  251. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  252. LW.C1=cf(0, 0.5, 0)
  253. LW.Part1=ch["Left Arm"]
  254. LW.Parent=ch.Torso
  255.  
  256. local function weldBetween(a, b)
  257. local weldd = Instance.new("ManualWeld")
  258. weldd.Part0 = a
  259. weldd.Part1 = b
  260. weldd.C0 = CFrame.new()
  261. weldd.C1 = b.CFrame:inverse() * a.CFrame
  262. weldd.Parent = a
  263. return weldd
  264. end
  265.  
  266. fat = Instance.new("BindableEvent", script)
  267. fat.Name = "Heartbeat"
  268.  
  269. script:WaitForChild("Heartbeat")
  270.  
  271. frame = 1 / 30
  272. tf = 0
  273. allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
  274. tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
  275. lastframe = tick()
  276. script.Heartbeat:Fire() --ayy lmao
  277.  
  278. game:GetService("RunService").Heartbeat:connect(function(s, p) --herp derp
  279. tf = tf + s
  280. if tf >= frame then
  281. if allowframeloss then
  282. script.Heartbeat:Fire()
  283. lastframe = tick()
  284. else
  285. --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
  286. for i = 1, math.floor(tf / frame) do
  287. script.Heartbeat:Fire()
  288. end
  289. lastframe = tick()
  290. end
  291. if tossremainder then
  292. tf = 0
  293. else
  294. tf = tf - frame * math.floor(tf / frame)
  295. end
  296. end
  297. end)
  298.  
  299. --To use: fat.Event:fat.Event:wait() or fat.Event:connect(function() asdcode end)
  300.  
  301. local function CFrameFromTopBack(at, top, back)
  302. local right = top:Cross(back)
  303. return CFrame.new(at.x, at.y, at.z,
  304. right.x, top.x, back.x,
  305. right.y, top.y, back.y,
  306. right.z, top.z, back.z)
  307. end
  308.  
  309. function Triangle(a, b, c)
  310. local edg1 = (c-a):Dot((b-a).unit)
  311. local edg2 = (a-b):Dot((c-b).unit)
  312. local edg3 = (b-c):Dot((a-c).unit)
  313. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  314. a, b, c = a, b, c
  315. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  316. a, b, c = b, c, a
  317. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  318. a, b, c = c, a, b
  319. else
  320. assert(false, "unreachable")
  321. end
  322.  
  323. local len1 = (c-a):Dot((b-a).unit)
  324. local len2 = (b-a).magnitude - len1
  325. local width = (a + (b-a).unit*len1 - c).magnitude
  326.  
  327. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  328.  
  329. local list = {}
  330.  
  331. local TrailColor = ("Dark grey")
  332.  
  333. if len1 > 0.01 then
  334. local w1 = Instance.new('WedgePart', m)
  335. game:GetService("Debris"):AddItem(w1,5)
  336. w1.Material = "SmoothPlastic"
  337. w1.FormFactor = 'Custom'
  338. w1.BrickColor = BrickColor.new(TrailColor)
  339. w1.Transparency = 0
  340. w1.Reflectance = 0
  341. w1.Material = "SmoothPlastic"
  342. w1.CanCollide = false
  343. NoOutline(w1)
  344. local sz = Vector3.new(0.2, width, len1)
  345. w1.Size = sz
  346. local sp = Instance.new("SpecialMesh",w1)
  347. sp.MeshType = "Wedge"
  348. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  349. w1:BreakJoints()
  350. w1.Anchored = true
  351. w1.Parent = workspace
  352. w1.Transparency = 0.7
  353. table.insert(Effects,{w1,"Disappear",.01})
  354. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  355. table.insert(list,w1)
  356. end
  357.  
  358. if len2 > 0.01 then
  359. local w2 = Instance.new('WedgePart', m)
  360. game:GetService("Debris"):AddItem(w2,5)
  361. w2.Material = "SmoothPlastic"
  362. w2.FormFactor = 'Custom'
  363. w2.BrickColor = BrickColor.new(TrailColor)
  364. w2.Transparency = 0
  365. w2.Reflectance = 0
  366. w2.Material = "SmoothPlastic"
  367. w2.CanCollide = false
  368. NoOutline(w2)
  369. local sz = Vector3.new(0.2, width, len2)
  370. w2.Size = sz
  371. local sp = Instance.new("SpecialMesh",w2)
  372. sp.MeshType = "Wedge"
  373. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  374. w2:BreakJoints()
  375. w2.Anchored = true
  376. w2.Parent = workspace
  377. w2.Transparency = 0.7
  378. table.insert(Effects,{w2,"Disappear",.01})
  379. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  380. table.insert(list,w2)
  381. end
  382. return unpack(list)
  383. end
  384.  
  385. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  386. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  387. end
  388.  
  389. function clerp(a,b,t)
  390. local qa = {QuaternionFromCFrame(a)}
  391. local qb = {QuaternionFromCFrame(b)}
  392. local ax, ay, az = a.x, a.y, a.z
  393. local bx, by, bz = b.x, b.y, b.z
  394. local _t = 1-t
  395. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  396. end
  397.  
  398. function QuaternionFromCFrame(cf)
  399. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  400. local trace = m00 + m11 + m22
  401. if trace > 0 then
  402. local s = math.sqrt(1 + trace)
  403. local recip = 0.5/s
  404. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  405. else
  406. local i = 0
  407. if m11 > m00 then
  408. i = 1
  409. end
  410. if m22 > (i == 0 and m00 or m11) then
  411. i = 2
  412. end
  413. if i == 0 then
  414. local s = math.sqrt(m00-m11-m22+1)
  415. local recip = 0.5/s
  416. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  417. elseif i == 1 then
  418. local s = math.sqrt(m11-m22-m00+1)
  419. local recip = 0.5/s
  420. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  421. elseif i == 2 then
  422. local s = math.sqrt(m22-m00-m11+1)
  423. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  424. end
  425. end
  426. end
  427.  
  428. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  429. local xs, ys, zs = x + x, y + y, z + z
  430. local wx, wy, wz = w*xs, w*ys, w*zs
  431. local xx = x*xs
  432. local xy = x*ys
  433. local xz = x*zs
  434. local yy = y*ys
  435. local yz = y*zs
  436. local zz = z*zs
  437. 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))
  438. end
  439.  
  440. function QuaternionSlerp(a, b, t)
  441. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  442. local startInterp, finishInterp;
  443. if cosTheta >= 0.0001 then
  444. if (1 - cosTheta) > 0.0001 then
  445. local theta = math.acos(cosTheta)
  446. local invSinTheta = 1/math.sin(theta)
  447. startInterp = math.sin((1-t)*theta)*invSinTheta
  448. finishInterp = math.sin(t*theta)*invSinTheta
  449. else
  450. startInterp = 1-t
  451. finishInterp = t
  452. end
  453. else
  454. if (1+cosTheta) > 0.0001 then
  455. local theta = math.acos(-cosTheta)
  456. local invSinTheta = 1/math.sin(theta)
  457. startInterp = math.sin((t-1)*theta)*invSinTheta
  458. finishInterp = math.sin(t*theta)*invSinTheta
  459. else
  460. startInterp = t-1
  461. finishInterp = t
  462. end
  463. end
  464. 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
  465. end
  466.  
  467. sitting=false
  468. resting=false
  469. meditating=false
  470. sprint=false
  471.  
  472. mouse.Button1Down:connect(function()
  473. end)
  474. print'Only instinct left is survival.'
  475. mouse.KeyDown:connect(function(k)
  476. k=k:lower()
  477. if k=='z' and attack==false and resting==false and sprint==false and meditating==false then
  478. attack=true
  479. if sitting==false then
  480. sitting=true
  481. Humanoid.WalkSpeed = 0
  482. for i=0,1,0.04 do
  483. fat.Event:wait()
  484. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  485. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  486. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  487. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  488. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  489. LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  490. end
  491. elseif sitting==true then
  492. sitting=false
  493. for i=0,1,0.04 do
  494. fat.Event:wait()
  495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  497. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  498. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.3,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  499. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  500. LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  501. end
  502. Humanoid.WalkSpeed = 3
  503. end
  504. attack=false
  505. end
  506. if k=='x' and attack==false and sitting==false and sprint==false and meditating==false then
  507. attack=true
  508. if resting==false then
  509. resting=true
  510. Humanoid.WalkSpeed = 0
  511. for i=0,1,0.04 do
  512. fat.Event:wait()
  513. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  514. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  515. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  516. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  517. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  518. LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  519. end
  520. elseif resting==true then
  521. resting=false
  522. for i=0,1,0.04 do
  523. fat.Event:wait()
  524. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  525. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  526. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  527. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  528. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  529. LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  530. end
  531. Humanoid.WalkSpeed = 3
  532. end
  533. attack=false
  534. end
  535. if k=='c' and attack==false and sitting==false and resting==false and sprint==false then
  536. attack=true
  537. if meditating==false then
  538. meditating=true
  539. Humanoid.WalkSpeed = 0
  540. for i=0,1,0.04 do
  541. fat.Event:wait()
  542. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  543. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  544. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  545. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  546. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  547. LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  548. end
  549. elseif meditating==true then
  550. meditating=false
  551. for i=0,1,0.04 do
  552. fat.Event:wait()
  553. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.05)*angles(math.rad(0),math.rad(15),math.rad(0)),0.15)
  554. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(30)),0.15)
  555. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.15)
  556. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.1,0)*angles(math.rad(15),math.rad(0),math.rad(-25)),0.15)
  557. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-40),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  558. LH.C0=clerp(LH.C0,cf(-0.75,0.05,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
  559. end
  560. Humanoid.WalkSpeed = 3
  561. end
  562. attack=false
  563. end
  564. if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==false then
  565. sprint=true
  566. Humanoid.WalkSpeed = 20
  567. end
  568. end)
  569.  
  570. mouse.KeyUp:connect(function(k)
  571. if k=='e' and attack==false and resting==false and sitting==false and meditating==false and sprint==true then
  572. sprint=false
  573. Humanoid.WalkSpeed = 3
  574. end
  575. end)
  576.  
  577. local sine = 0
  578. local change = 1
  579. local val = 0
  580.  
  581. fat.Event:connect(function()
  582. sine = sine + change
  583. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  584. local velderp=RootPart.Velocity.y
  585. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  586. if equipped==true or equipped==false then
  587. if attack==false then
  588. idle=idle+1
  589. else
  590. idle=0
  591. end
  592. if idle>=500 then
  593. if attack==false then
  594. --Sheath()
  595. end
  596. end
  597. if RootPart.Velocity.y > 1 and hitfloor==nil then
  598. Anim="Jump"
  599. if attack==false then
  600. change=1
  601. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  602. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  603. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(20)),0.15)
  604. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-20)),0.15)
  605. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-20),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  606. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),0.15)
  607. end
  608. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  609. Anim="Fall"
  610. if attack==false then
  611. change=1
  612. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),0.15)
  613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),0.15)
  614. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(10)),0.15)
  615. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-10)),0.15)
  616. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  617. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
  618. end
  619. elseif torvel<1 and hitfloor~=nil then
  620. Anim="Idle"
  621. if attack==false and sitting==false and resting==false and meditating==false then
  622. change=1
  623. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  624. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  625. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(10+5*math.cos(sine/30))+ math.sin(sine/30)/20),0.15)
  626. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.55+0.05*math.cos(sine/30)+ -math.sin(sine/30)/40,0)*angles(math.rad(5-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10-5*math.cos(sine/30))+ -math.sin(sine/30)/20),0.15)
  627. RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  628. LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/30),0.025*math.cos(sine/30))*angles(math.rad(-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  629. else
  630. if attack==false and sitting==true and resting==false and meditating==false then
  631. change=1
  632. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  633. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(-5*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  634. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(10)),0.15)
  635. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.45,0)*angles(math.rad(-45-2.5*math.cos(sine/30)),math.rad(0),math.rad(-10)),0.15)
  636. RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  637. LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(45-2.5*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
  638. else
  639. if attack==false and sitting==false and resting==true and meditating==false then
  640. change=1
  641. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.3)*angles(math.rad(-80-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  642. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(5-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  643. RW.C0=clerp(RW.C0,CFrame.new(1,0.75,0.1)*angles(math.rad(215-1*math.cos(sine/30)),math.rad(0),math.rad(-45)),0.15)
  644. LW.C0=clerp(LW.C0,CFrame.new(-1,0.75,0.1)*angles(math.rad(200-1*math.cos(sine/30)),math.rad(0),math.rad(45)),0.15)
  645. RH.C0=clerp(RH.C0,cf(1,-1,0.025*math.cos(sine/30))*angles(math.rad(25-1*math.cos(sine/30)),math.rad(90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
  646. LH.C0=clerp(LH.C0,cf(-1,-1,0.025*math.cos(sine/30))*angles(math.rad(10-1*math.cos(sine/30)),math.rad(-90),math.rad(0))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
  647. else
  648. if attack==false and sitting==false and resting==false and meditating==true then
  649. change=1
  650. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.9)*angles(math.rad(10-1*math.cos(sine/30)),math.rad(0),math.rad(0)),0.15)
  651. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10-1*math.cos(sine/30))+ -math.sin(sine/30)/15,math.rad(0),math.rad(0)),0.15)
  652. RW.C0=clerp(RW.C0,CFrame.new(1.25,0.5,-0.5)*angles(math.rad(0),math.rad(165),math.rad(90)),0.15)
  653. LW.C0=clerp(LW.C0,CFrame.new(-1.25,0.5,-0.5)*angles(math.rad(0),math.rad(-165),math.rad(-90)),0.15)
  654. RH.C0=clerp(RH.C0,cf(1,-1,0.1)*angles(math.rad(-30),math.rad(75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
  655. LH.C0=clerp(LH.C0,cf(-1,-1,0.1)*angles(math.rad(-30),math.rad(-75),math.rad(0))*angles(math.rad(80),math.rad(0),math.rad(0)),0.15)
  656. end
  657. end
  658. end
  659. end
  660. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  661. Anim="Walk"
  662. if attack==false and sprint==false then
  663. change=0.5
  664. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  665. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
  666. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(30*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
  667. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-30*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
  668. RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-15*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  669. LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+15*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  670. elseif attack==false and sprint==true then
  671. change=1
  672. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
  673. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0+0.025*math.cos(sine/3.5))*angles(math.rad(0-2.5*math.cos(sine/3.5)),math.rad(1.5*math.cos(sine/7)),math.rad(-7.5*math.cos(sine/7))),0.15)
  674. RW.C0=clerp(RW.C0,CFrame.new(1.5,0.5,0)*angles(math.rad(45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(0),math.rad(10)),0.15)
  675. LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(0),math.rad(-10)),0.15)
  676. RH.C0=clerp(RH.C0,cf(1,-0.9-0.25*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-15-45*math.cos(sine/7))+ -math.sin(sine/7)/2.5,math.rad(90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0+2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  677. LH.C0=clerp(LH.C0,cf(-1,-0.9+0.25*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-15+45*math.cos(sine/7))+ math.sin(sine/7)/2.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0))*angles(math.rad(0-2.5*math.cos(sine/7)),math.rad(0),math.rad(0)),0.15)
  678. end
  679. elseif torvel<22 and hitfloor~=nil then
  680. Anim="Run"
  681. if attack==false then
  682. end
  683. end
  684. end
  685. end)
  686.  
  687. --Created with PenguinAnonymous's compiler
  688. --PenguinAnonymous is not responsible for damages caused to your game
  689. --This plugin does not remove things
  690. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  691. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  692. --Thank you for using my plugin and enjoy :)
  693. --It is free to use
  694. --If you use this plugin to create your own, please give me credit
  695. --Errors:
  696. local runDummyScript = function(f,scri)
  697. local oldenv = getfenv(f)
  698. local newenv = setmetatable({}, {
  699. __index = function(_, k)
  700. if k:lower() == 'script' then
  701. return scri
  702. else
  703. return oldenv[k]
  704. end
  705. end
  706. })
  707. setfenv(f, newenv)
  708. ypcall(function() f() end)
  709. end
  710. cors = {}
  711. mas = Instance.new("Model",game:GetService("Lighting"))
  712. mas.Name = "CompiledModel"
  713. o1 = Instance.new("Tool")
  714. o2 = Instance.new("Part")
  715. o3 = Instance.new("Sound")
  716. o4 = Instance.new("SpecialMesh")
  717. o5 = Instance.new("Sound")
  718. o6 = Instance.new("Sound")
  719. o7 = Instance.new("Fire")
  720. o8 = Instance.new("PointLight")
  721. o9 = Instance.new("Smoke")
  722. o10 = Instance.new("ParticleEmitter")
  723. o11 = Instance.new("PointLight")
  724. o12 = Instance.new("ParticleEmitter")
  725. o13 = Instance.new("LocalScript")
  726. o14 = Instance.new("Animation")
  727. o15 = Instance.new("Animation")
  728. o16 = Instance.new("Animation")
  729. o17 = Instance.new("Script")
  730. o18 = Instance.new("ParticleEmitter")
  731. o19 = Instance.new("PointLight")
  732. o20 = Instance.new("ParticleEmitter")
  733. o1.Name = "ChargedFireball"
  734. o1.Parent = mas
  735. o1.TextureId = "http://www.roblox.com/asset/?id=318924325"
  736. o1.GripRight = Vector3.new(0, -1, 0)
  737. o1.GripUp = Vector3.new(1, 0, 0)
  738. o1.ToolTip = "Fireball"
  739. o1.CanBeDropped = false
  740. o2.Name = "Handle"
  741. o2.Parent = o1
  742. o2.BrickColor = BrickColor.new("Bright blue")
  743. o2.Transparency = 1
  744. o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
  745. o2.Rotation = Vector3.new(-90, 0, -90)
  746. o2.RotVelocity = Vector3.new(1, 1, 1)
  747. o2.Locked = true
  748. o2.FormFactor = Enum.FormFactor.Symmetric
  749. o2.Shape = Enum.PartType.Ball
  750. o2.Size = Vector3.new(1, 1, 1)
  751. o2.CFrame = CFrame.new(4.70000029, 2086, -3.10000014, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  752. o2.BottomSurface = Enum.SurfaceType.Smooth
  753. o2.TopSurface = Enum.SurfaceType.Smooth
  754. o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
  755. o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
  756. o2.Orientation = Vector3.new(-90, -90, 0)
  757. o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
  758. o3.Name = "ExplodeSound"
  759. o3.Parent = o2
  760. o3.SoundId = "http://www.roblox.com/asset/?id=163277488"
  761. o3.Volume = math.huge
  762. o4.Parent = o2
  763. o4.MeshType = Enum.MeshType.Sphere
  764. o5.Name = "ChargeSound"
  765. o5.Parent = o2
  766. o5.SoundId = "http://www.roblox.com/asset/?id=339027743"
  767. o5.Volume = math.huge
  768. o6.Name = "FireSound"
  769. o6.Parent = o2
  770. o6.SoundId = "http://www.roblox.com/asset/?id=137304720"
  771. o6.Volume = 1
  772. o7.Parent = o2
  773. o7.Size = 3
  774. o7.Color = Color3.new(178, 138, 239)
  775. o7.Enabled = false
  776. o7.Heat = 0
  777. o7.Color = Color3.new(178, 138, 239)
  778. o8.Parent = o2
  779. o8.Color = Color3.new(178, 138, 239)
  780. o8.Enabled = false
  781. o8.Shadows = true
  782. o8.Color = Color3.new(178, 138, 239)
  783. o9.Parent = o2
  784. o9.Size = 0.10000000149012
  785. o9.Color = Color3.new(178, 138, 239)
  786. o9.Enabled = false
  787. o9.RiseVelocity = 0
  788. o9.Color = Color3.new(178, 138, 239)
  789. o10.Name = "Fire"
  790. o10.Parent = o2
  791. o10.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
  792. o10.Rotation = NumberRange.new(-180,180)
  793. o10.Size = NumberSequence.new(1.25,2)
  794. o10.Color = ColorSequence.new(Color3.new(178, 138, 239),Color3.new(178, 138, 239))
  795. o10.LightEmission = 1
  796. o10.Texture = "http://www.roblox.com/asset/?id=1057317572"
  797. o10.ZOffset = 1
  798. o10.Acceleration = Vector3.new(0, 12.5, 0)
  799. o10.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
  800. o10.Rate = 50
  801. o10.RotSpeed = NumberRange.new(-180,180)
  802. o10.Speed = NumberRange.new(0,0)
  803. o10.VelocitySpread = 0
  804. o10.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  805. o11.Name = "Light"
  806. o11.Parent = o2
  807. o11.Color = Color3.new(1, 0.654902, 0.235294)
  808. o11.Shadows = true
  809. o11.Color = Color3.new(1, 0.654902, 0.235294)
  810. o12.Name = "Sparks"
  811. o12.Parent = o2
  812. o12.Size = NumberSequence.new(0.625,0)
  813. o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  814. o12.LightEmission = 1
  815. o12.Texture = "http://www.roblox.com/asset/?id=1057317572"
  816. o12.ZOffset = 1
  817. o12.Acceleration = Vector3.new(0, 10, 0)
  818. o12.Lifetime = NumberRange.new(0.5,0.82499998807907)
  819. o12.Rate = 50
  820. o12.Speed = NumberRange.new(1,3)
  821. o12.VelocitySpread = 180
  822. o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  823. o13.Parent = o1
  824. table.insert(cors,coroutine.create(function()
  825. wait()
  826. runDummyScript(function()
  827. --Originally by Stickmasterluke, modified by BombHunter2000
  828.  
  829.  
  830. sp=script.Parent
  831. plr=game.Players.localPlayer
  832.  
  833. --Bomb--
  834. damage={inf,inf}
  835. firerate=2
  836. bombvelocity=100
  837. chargetime=4
  838. extrasize=4
  839. --------
  840.  
  841. rate=1/30
  842. debris=game:GetService("Debris")
  843. equipped=false
  844. check=true
  845.  
  846. function waitfor(a,b)
  847. while a:FindFirstChild(b)==nil do
  848. a.ChildAdded:wait()
  849. end
  850. return a:FindFirstChild(b)
  851. end
  852.  
  853. local anim2=waitfor(sp,"ChargeEnergyBall")
  854. local anim3=waitfor(sp,"RightSlash")
  855.  
  856. function onEquipped(mouse)
  857. sp.Handle.Transparency=1
  858. equipped=true
  859. if chargeanim~=nil then
  860. chargeanim:Stop()
  861. end
  862. if mouse~=nil then
  863. mouse.Icon="rbxasset://textures\\GunCursor.png"
  864. mouse.Button1Down:connect(function()
  865. down=true
  866. local he=sp.Parent:FindFirstChild("Head")
  867. local hu=sp.Parent:FindFirstChild("Humanoid")
  868. if check and he and hu and hu.Health>0 then
  869. check=false
  870. mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
  871. starttime=tick()
  872. lv=he.CFrame.lookVector
  873. local mesh=sp.Handle:FindFirstChild("Mesh")
  874. if mesh~=nil then
  875. mesh.Scale=Vector3.new(1,1,1)
  876. end
  877. local fire=sp.Handle:FindFirstChild("Fire")
  878. if fire~=nil then
  879. fire.Size=0
  880. fire.Enabled=true
  881. end
  882. local light=sp.Handle:FindFirstChild("PointLight")
  883. if light~=nil then
  884. light.Range=0
  885. light.Enabled=true
  886. end
  887. local smoke=sp.Handle:FindFirstChild("Smoke")
  888. if smoke~=nil then
  889. smoke.Size=0
  890. smoke.Enabled=false
  891. end
  892. if chargeanim~=nil then
  893. chargeanim:Stop()
  894. end
  895. chargeanim=hu:LoadAnimation(anim2)
  896. if chargeanim then
  897. chargeanim:Play()
  898. end
  899. local lastchargesound=0
  900. while down and equipped and tick()-starttime<chargetime and hu~=nil and hu.Health>0 do
  901. local percent=(tick()-starttime)/chargetime
  902. sp.Handle.Transparency=1+(math.random()*.3)
  903. local mesh=sp.Handle:FindFirstChild("Mesh")
  904. if mesh~=nil then
  905. mesh.Scale=Vector3.new(1,1,1)+(Vector3.new(1,1,1)*extrasize*percent)
  906. end
  907. local fire=sp.Handle:FindFirstChild("Fire")
  908. if fire~=nil then
  909. fire.Size=percent*extrasize*2
  910. end
  911. local light=sp.Handle:FindFirstChild("PointLight")
  912. if light~=nil then
  913. light.Range=percent*extrasize*4
  914. end
  915. local smoke=sp.Handle:FindFirstChild("Smoke")
  916. if smoke~=nil then
  917. smoke.Size=percent*extrasize*.2
  918. end
  919. if tick()-lastchargesound>5 then
  920. lastchargesound=tick()
  921. local sound=sp.Handle:FindFirstChild("ChargeSound")
  922. if sound~=nil then
  923. sound:Play()
  924. end
  925. end
  926. wait()
  927. end
  928. sp.GripPos=Vector3.new(0,0,0)
  929. sp.Handle.Transparency=1
  930. throwanim=hu:LoadAnimation(anim3)
  931. if throwanim then
  932. throwanim:Play(0,1,8)
  933. end
  934. local sound=sp.Handle:FindFirstChild("ChargeSound")
  935. if sound~=nil then
  936. sound:Stop()
  937. end
  938. local sound=sp.Handle:FindFirstChild("FireSound")
  939. if sound~=nil then
  940. sound:Play()
  941. end
  942. local fire=sp.Handle:FindFirstChild("Fire")
  943. if fire~=nil then
  944. fire.Enabled=false
  945. end
  946. local smoke=sp.Handle:FindFirstChild("Smoke")
  947. if smoke~=nil then
  948. smoke.Enabled=false
  949. end
  950. local light=sp.Handle:FindFirstChild("PointLight")
  951. if light~=nil then
  952. light.Enabled=false
  953. end
  954. local shot=sp.Handle:clone()
  955. if chargeanim~=nil then
  956. chargeanim:Stop()
  957. end
  958. local fire=shot:FindFirstChild("Fire")
  959. if fire~=nil then
  960. fire.Enabled=true
  961. end
  962. local smoke=shot:FindFirstChild("Smoke")
  963. if smoke~=nil then
  964. smoke.Enabled=true
  965. end
  966. local light=shot:FindFirstChild("PointLight")
  967. if light~=nil then
  968. light.Enabled=true
  969. end
  970. local percent=math.min(math.max((tick()-starttime)/chargetime,0),1)
  971. local size=(1+(extrasize*percent))
  972. shot.Size=Vector3.new(1,1,1)*size
  973. shot.Mesh.Scale=Vector3.new(1,1,1)*(size/shot.Size.Y)
  974. shot.Name="Effect"
  975. shot.CanCollide=false
  976. shot.Transparency=1
  977. if mouse~=nil then
  978. shot.Velocity=((mouse.Hit.p-shot.Position).unit)*bombvelocity
  979. else
  980. shot.Velocity=lv*bombvelocity
  981. end
  982. shot.RotVelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*20
  983. local bf=Instance.new("BodyForce")
  984. bf.force=Vector3.new(0,shot:GetMass()*196.2,0)
  985. bf.Parent=shot
  986. shot.Touched:connect(function(hit)
  987. if shot~=nil and shot.Transparency~=10 and hit~=nil and string.lower(string.sub(hit.Name,1,6))~="effect" then
  988. if not hit:IsDescendantOf(sp.Parent) then
  989. local hum=hit.Parent:FindFirstChild("Humanoid")
  990. if hum~=nil then
  991. for _,v in pairs(hum:GetChildren()) do
  992. if v~=nil and v.Name=="creator" then
  993. v:remove()
  994. end
  995. end
  996. local ct=Instance.new("ObjectValue")
  997. ct.Name="creator"
  998. ct.Value=game.Players.LocalPlayer
  999. ct.Parent=hum
  1000. hum:TakeDamage(damage[1]+(percent*(damage[2]-damage[1])))
  1001. end
  1002. local explosion = Instance.new('Explosion')
  1003. explosion.BlastPressure = percent*extrasize*5
  1004. explosion.BlastRadius = percent*extrasize*2
  1005. explosion.Position = shot.Position
  1006. explosion.Parent = game.Workspace
  1007. local sound=shot:FindFirstChild("ExplodeSound")
  1008. if sound~=nil then
  1009. sound.Volume=.5+(.5*percent)
  1010. sound:Play()
  1011. end
  1012. shot.Transparency=1
  1013. shot.Anchored=true
  1014. local fire=shot:FindFirstChild("Fire")
  1015. if fire~=nil then
  1016. fire.Enabled=false
  1017. end
  1018. local smoke=shot:FindFirstChild("Smoke")
  1019. if smoke~=nil then
  1020. smoke.Enabled=false
  1021. end
  1022. local light=shot:FindFirstChild("PointLight")
  1023. if light~=nil then
  1024. light.Enabled=false
  1025. end
  1026. wait(.1)
  1027. if shot~=nil then
  1028. shot:remove()
  1029. end
  1030. end
  1031. end
  1032. end)
  1033. debris:AddItem(shot,14)
  1034. shot.Parent=game.Workspace
  1035. wait(firerate)
  1036. mouse.Icon="rbxasset://textures\\GunCursor.png"
  1037. check=true
  1038. end
  1039. end)
  1040. mouse.Button1Up:connect(function()
  1041. down=false
  1042. end)
  1043. end
  1044. end
  1045.  
  1046. function onUnequipped()
  1047. equipped=false
  1048. end
  1049.  
  1050. -- Waits for the child of the specified parent
  1051. local function WaitForChild(parent, childName)
  1052. while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
  1053. return parent[childName]
  1054. end
  1055.  
  1056. local Tool = script.Parent
  1057.  
  1058. local Animations = {}
  1059. local MyHumanoid
  1060. local MyCharacter
  1061.  
  1062.  
  1063. local function PlayAnimation(animationName)
  1064. if Animations[animationName] then
  1065. Animations[animationName]:Play()
  1066. end
  1067. end
  1068.  
  1069. local function StopAnimation(animationName)
  1070. if Animations[animationName] then
  1071. Animations[animationName]:Stop()
  1072. end
  1073. end
  1074.  
  1075.  
  1076. function OnEquipped(mouse)
  1077. MyCharacter = Tool.Parent
  1078. MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
  1079. if MyHumanoid then
  1080.  
  1081. Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim3'))
  1082. end
  1083. PlayAnimation('IdleAnim')
  1084. end
  1085.  
  1086. function OnUnequipped()
  1087. for animName, _ in pairs(Animations) do
  1088. StopAnimation(animName)
  1089. end
  1090. end
  1091.  
  1092. Tool.Equipped:connect(OnEquipped)
  1093. Tool.Unequipped:connect(OnUnequipped)
  1094.  
  1095. sp.Equipped:connect(onEquipped)
  1096. sp.Unequipped:connect(onUnequipped)
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103. end,o13)
  1104. end))
  1105. o14.Name = "ChargeEnergyBall"
  1106. o14.Parent = o1
  1107. o14.AnimationId = "http://www.roblox.com/Asset?ID=30257281"
  1108. o15.Name = "IdleAnim3"
  1109. o15.Parent = o1
  1110. o15.AnimationId = "http://www.roblox.com/asset/?id=69427262"
  1111. o16.Name = "RightSlash"
  1112. o16.Parent = o1
  1113. o16.AnimationId = "http://www.roblox.com/asset?id=187564515"
  1114. o17.Name = "FireTool"
  1115. o17.Parent = o1
  1116. table.insert(cors,coroutine.create(function()
  1117. wait()
  1118. runDummyScript(function()
  1119. -- Scripted by duncan778
  1120.  
  1121. local Tool = script.Parent;
  1122. enabled = true
  1123.  
  1124. function fire(v)
  1125. local vCharacter = Tool.Parent
  1126. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1127.  
  1128. local missile = Instance.new("Part")
  1129.  
  1130. local spawnPos = Tool.Handle.Position
  1131. spawnPos = spawnPos + (v * 4)
  1132.  
  1133. missile.Position = spawnPos
  1134. missile.Size = Vector3.new(1,1,1)
  1135. missile.Velocity = v * 85
  1136. missile.Shape = 0
  1137. missile.BottomSurface = 0
  1138. missile.TopSurface = 0
  1139. missile.Name = "Firebolt"
  1140. missile.Transparency = 1
  1141. missile.CanCollide = false
  1142.  
  1143. local f = script.Fire:clone()
  1144. f.Parent = missile
  1145. f.Enabled = true
  1146. local s = script.Sparks:clone()
  1147. s.Parent = missile
  1148. s.Enabled = true
  1149. local l = script.Light:clone()
  1150. l.Parent = missile
  1151. l.Enabled = true
  1152.  
  1153. local force = Instance.new("BodyForce")
  1154. force.force = Vector3.new(0,100,0)
  1155. force.Parent = missile
  1156.  
  1157. local creator_tag = Instance.new("ObjectValue")
  1158. creator_tag.Value = vPlayer
  1159. creator_tag.Name = "creator"
  1160. creator_tag.Parent = missile
  1161.  
  1162. local new_script = Tool.BurnScript:clone()
  1163. new_script.Parent = missile
  1164. new_script.Disabled = false
  1165.  
  1166. local CreatorTag = Instance.new("StringValue")
  1167. CreatorTag.Name = "CreatorTag"
  1168. CreatorTag.Value = Tool.Parent.Name
  1169. CreatorTag.Parent = missile
  1170.  
  1171. missile.Parent = game.Workspace
  1172. end
  1173.  
  1174. function gunUp()
  1175. Tool.Handle.Fire.Enabled = false
  1176. Tool.Handle.Sparks.Enabled = false
  1177. Tool.Handle.Light.Enabled = false
  1178. end
  1179.  
  1180. function gunOut()
  1181. Tool.Handle.Fire.Enabled = true
  1182. Tool.Handle.Sparks.Enabled = true
  1183. Tool.Handle.Light.Enabled = true
  1184. end
  1185.  
  1186. function onActivated()
  1187. if not enabled then
  1188. return
  1189. end
  1190. enabled = false
  1191. local character = Tool.Parent;
  1192. local humanoid = character.Humanoid
  1193. if humanoid == nil then
  1194. print("Humanoid not found")
  1195. return
  1196. end
  1197. local targetPos = humanoid.TargetPoint
  1198. local lookAt = (targetPos - character.Head.Position).unit
  1199.  
  1200. local reload = 5
  1201.  
  1202. gunUp()
  1203. fire(lookAt)
  1204. wait(reload)
  1205. gunOut()
  1206. wait()
  1207. enabled = true
  1208. end
  1209.  
  1210. script.Parent.Activated:connect(onActivated)
  1211.  
  1212. end,o17)
  1213. end))
  1214. o18.Name = "Sparks"
  1215. o18.Parent = o17
  1216. o18.Size = NumberSequence.new(0.625,0)
  1217. o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  1218. o18.Enabled = false
  1219. o18.LightEmission = 1
  1220. o18.Texture = "http://www.roblox.com/asset/?id=298984512"
  1221. o18.ZOffset = 1
  1222. o18.Acceleration = Vector3.new(0, -5, 0)
  1223. o18.Lifetime = NumberRange.new(1,2)
  1224. o18.Rate = 75
  1225. o18.Speed = NumberRange.new(6,8)
  1226. o18.VelocitySpread = 65
  1227. o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  1228. o19.Name = "Light"
  1229. o19.Parent = o17
  1230. o19.Color = Color3.new(1, 0.654902, 0.235294)
  1231. o19.Brightness = 1.5
  1232. o19.Range = 12
  1233. o19.Shadows = true
  1234. o19.Color = Color3.new(1, 0.654902, 0.235294)
  1235. o20.Name = "Fire"
  1236. o20.Parent = o17
  1237. o20.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
  1238. o20.Rotation = NumberRange.new(-180,180)
  1239. o20.Size = NumberSequence.new(2.5,3.75)
  1240. o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  1241. o20.Enabled = false
  1242. o20.LightEmission = 0.625
  1243. o20.Texture = "http://www.roblox.com/asset/?id=301811459"
  1244. o20.ZOffset = 1
  1245. o20.Acceleration = Vector3.new(0, 12.5, 0)
  1246. o20.Lifetime = NumberRange.new(0.40000000596046,0.80000001192093)
  1247. o20.Rate = 125
  1248. o20.RotSpeed = NumberRange.new(-180,180)
  1249. o20.Speed = NumberRange.new(0,0)
  1250. o20.VelocitySpread = 180
  1251. o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
  1252. mas.Parent = workspace
  1253. mas:MakeJoints()
  1254. local mas1 = mas:GetChildren()
  1255. for i=1,#mas1 do
  1256. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  1257. ypcall(function() mas1[i]:MakeJoints() end)
  1258. end
  1259. mas:Destroy()
  1260. for i=1,#cors do
  1261. coroutine.resume(cors[i])
  1262. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement