Advertisement
geovanycool

Untitled

Oct 14th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.56 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  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. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89.  
  90. --Epic Staff Gifted by TheRedAngel, Regular Script!
  91.  
  92. name = 'Epic Staff'
  93. PLAYERS = game:GetService('Players')
  94. ply = owner
  95. char = ply.Character
  96. pcall(function() char:FindFirstChild("legetdgq"):Remove() end)
  97. m = Instance.new("Model",char) m.Name = "steff2k8"
  98. hop = Instance.new("HopperBin",ply.Backpack)
  99. hop.Name = name
  100. debris = game:GetService("Debris")
  101.  
  102. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  103. floatforce = 196.25
  104.  
  105. torso,head = char.Torso,char.Head
  106. attacking = false
  107.  
  108. rs = torso["Right Shoulder"]
  109. ls = torso["Left Shoulder"]
  110. rh = torso["Right Hip"]
  111. lh = torso["Left Hip"]
  112. neck = torso["Neck"]
  113. rw,lw = nil,nil
  114. rhw,lhw = nil,nil
  115. local orgc1 = rs.C1
  116.  
  117. rarm = char["Right Arm"]
  118. larm = char["Left Arm"]
  119. rleg = char["Right Leg"]
  120. lleg = char["Left Leg"]
  121.  
  122. normposr = cfn(1.5,.5,0)
  123. normposl = cfn(-1.5,.5,0)
  124. normposl2 = cfn(.5,-1.5,0)
  125. normposr2 = cfn(-.5,-1.5,0)
  126. normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
  127.  
  128. holdpos = normposr*ang(math.pi/2,0,0)
  129. holdpos2 = normposl*ang(math.pi/2,0,0)
  130.  
  131. --------UTILITIES START-------
  132. function genNew(ClassName, Parent, Properties)
  133. local nObj = Instance.new(ClassName, Parent)
  134. if Properties["FormFactor"] then
  135. nObj["FormFactor"] = Properties["FormFactor"]
  136. end
  137. for Prop, Value in pairs(Properties) do
  138. nObj[Prop] = Value
  139. end
  140. return nObj
  141. end
  142.  
  143. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  144. if typee == 'wedge' then
  145. c = Instance.new("WedgePart",m)
  146. elseif typee == 'seat' then
  147. c = Instance.new("Seat",m)
  148. elseif typee == 'vseat' then
  149. c = Instance.new("VehicleSeat",m)
  150. else
  151. c = Instance.new("Part",m)
  152. end
  153. c.TopSurface,c.BottomSurface = 0,0
  154. c.Locked = true
  155. c.formFactor = "Custom"
  156. c.Size = Vector3.new(x,y,z)
  157. if color ~= "random" then
  158. c.BrickColor = BrickColor.new(color)
  159. else c.BrickColor = BrickColor:random()
  160. end
  161. c.Transparency = transparency
  162. c.CanCollide = cancollide
  163. if anchored ~= nil then c.Anchored = anchored end
  164. if parent ~= nil then c.Parent = parent end
  165. return c
  166. end
  167. ,
  168. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  169. ,
  170. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  171. w = Instance.new("Motor",m)
  172. if parent ~= nil then w.Parent = parent end
  173. w.Part0,w.Part1 = part0,part1
  174. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  175. return w
  176. end
  177. ,
  178. ["BG"] = function(parent)
  179. local c = Instance.new("BodyGyro",parent)
  180. c.P = 20e+003
  181. c.cframe = parent.CFrame
  182. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  183. return c
  184. end
  185. ,
  186. ["BP"] = function(parent,position)
  187. local bp = Instance.new("BodyPosition",parent)
  188. bp.maxForce = Vector3.new()*math.huge
  189. bp.position = position
  190. return bp
  191. end
  192. ,
  193. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  194. f = Instance.new("Fire",parent)
  195. f.Size = size
  196. f.Heat = heat
  197. if enabled ~= nil then f.Enabled = enabled end
  198. if color ~= nil then f.Color = BrickColor.new(color).Color end
  199. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  200. return f
  201. end
  202. ,
  203.  
  204. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  205. if meshid == "cylinder" then
  206. mesh = Instance.new("CylinderMesh",parent)
  207. mesh.Scale = Vector3.new(x,y,z)
  208. return mesh
  209. elseif meshid == 'block' then
  210. mesh = Instance.new("BlockMesh",parent)
  211. mesh.Scale = Vector3.new(x,y,z)
  212. return mesh
  213. end
  214. mesh = Instance.new("SpecialMesh",parent)
  215.  
  216. if meshid == 'wedge' then
  217. mesh.MeshType = 'Wedge'
  218. elseif meshid == 'sphere' then
  219. mesh.MeshType = 3
  220. elseif type(meshid) == "number" then
  221. mesh.MeshId = "rbxassetid://"..meshid
  222. else
  223. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  224. end
  225. mesh.Scale = Vector3.new(x,y,z)
  226. if meshtexture then
  227. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  228. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  229. end
  230. return mesh
  231. end,
  232.  
  233. ["Dec"] = function(parent,face,id,transparency)
  234. c = Instance.new("Decal",parent)
  235. c.Face = face
  236. c.Texture = id
  237. if transparency then c.Transparency = transparency end
  238. return c
  239. end,
  240. ["S"] = function(id,pitch,volume,parent)
  241. cur = nil
  242. found = false
  243. if type(id) == 'string' then
  244. for i,v in pairs(char.Head:children()) do
  245. if v:IsA("Sound") and v.Name == id and not found then
  246. cur = v
  247. if parent then cur = v:Clone() cur.Parent = parent end
  248. cur.Pitch = pitch
  249. if volume then cur.Volume = volume end
  250. cur:Play()
  251. found = true
  252. return cur
  253. end
  254. end
  255. elseif type(id) == 'number' then
  256. local a = char.Head:FindFirstChild('exteo')
  257. a.SoundId = 'rbxassetid://'..id
  258. a.Pitch = pitch
  259. if volume then a.Volume = volume end
  260. a:Play()
  261. return a
  262. end
  263. end
  264. }
  265. function FindHumanoid(a,b)
  266. for i,v in pairs(a:children()) do
  267. if v:IsA('Humanoid') then
  268. if not b then
  269. if v.Parent ~= char then return v end
  270. else return v end
  271. end
  272. end
  273. end
  274. function damage(hit,amount,delay) ---- VAHINKO DAMAGE
  275. hum = FindHumanoid(hit)
  276. if hum then
  277. if delay then
  278. local found = CheckTag(hum,'tag')
  279. if not found then
  280. local a = AddTag(hum,'tag')
  281. debris:AddItem(a,delay)
  282. hum.Health = hum.Health - amount
  283. end
  284. else hum.Health = hum.Health - amount
  285. end
  286. return hum
  287. end
  288. end
  289.  
  290. rtorso = torso
  291.  
  292. lock = {["R"] =
  293. function(a)
  294. if a == 1 then
  295. rabrick = T.P(1,1,1,"White",1,false,false)
  296. rw = T.W(rabrick,rtorso,1.5,.5,0,0,0,0)
  297. T.W(rarm,rabrick,0,-.5,0,0,0,0)
  298. elseif a == 2 then
  299. rlbrick = T.P(1,1,1,"White",1,false,false)
  300. rhw = T.W(rlbrick,rtorso,-.5,-1.5,0,0,0,0)
  301. T.W(rleg,rlbrick,0,-.5,0,0,0,0)
  302. elseif a == 0 then
  303. rs.Parent = rtorso
  304. rw.Parent = nil
  305. rabrick:Destroy() rabrick = nil
  306. elseif a == -1 then
  307. rhw.Parent = nil
  308. rh.Parent = rtorso
  309. rlbrick:Destroy() rlbrick = nil
  310. end
  311. end
  312. , ["L"] = function(a)
  313. if a == 1 then
  314. labrick = T.P(1,1,1,"White",1,false,false)
  315. lw = T.W(labrick,rtorso,-1.5,.5,0,0,0,0)
  316. T.W(larm,labrick,0,-.5,0,0,0,0)
  317. elseif a == 2 then
  318. llbrick = T.P(1,1,1,"White",1,false,false)
  319. lhw = T.W(llbrick,rtorso,.5,-1.5,0,0,0,0)
  320. T.W(lleg,llbrick,0,-.5,0,0,0,0)
  321. elseif a == 0 then
  322. ls.Parent = rtorso
  323. lw.Parent = nil
  324. labrick:Destroy() labrick = nil
  325. elseif a == -1 then
  326. lhw.Parent = nil
  327. lh.Parent = rtorso
  328. llbrick:Destroy() llbrick = nil
  329. end
  330. end
  331. }
  332.  
  333. function spaas(position,radius,number,number2,color)
  334. mode = Instance.new("Model",m)
  335.  
  336. for i = 1,number2 do
  337. pos = position+v3n(M.R(-radius,radius),M.R(-radius,radius),M.R(-radius,radius))
  338. mag = (position-pos).magnitude
  339.  
  340. col = color or 'Toothpaste'
  341. local laz = T.P(.1,mag,.1,col,0,false,true,mode)
  342.  
  343. T.FM(laz,'cylinder',.3,1,.3)
  344. laz.CFrame = (cfn(position,pos)*cfn(0,0,-mag/2))*ang(math.pi/2,0,0)
  345.  
  346. cframe = (laz.CFrame*cfn(0,-mag/2,0)).p
  347. pos2 = cframe+v3n(M.R(-radius,radius),M.R(-radius,radius),M.R(-radius,radius))
  348. mag2 = (cframe-pos2).magnitude
  349. local laz2 = T.P(.1,mag2,.1,col,0,false,true,mode)
  350. T.FM(laz2,'cylinder',.3,1,.3)
  351. laz2.CFrame = (cfn(cframe,pos2)*cfn(0,0,-mag2/2))*ang(math.pi/2,0,0)
  352.  
  353. previo = laz2
  354. for i = 1,number do
  355. cframe = (previo.CFrame*cfn(0,-mag/2,0)).p
  356. pos2 = cframe+v3n(M.R(-radius,radius),M.R(-radius,radius),M.R(-radius,radius))
  357. mag2 = (cframe-pos2).magnitude
  358.  
  359. local laz2 = T.P(.1,mag2,.1,col,0,false,true,mode)
  360. T.FM(laz2,'cylinder',.3,1,.3)
  361. laz2.CFrame = (cfn(cframe,pos2)*cfn(0,0,-mag2/2))*ang(math.pi/2,0,0)
  362.  
  363. previo = laz2
  364. end
  365.  
  366. end
  367. debris:AddItem(mode,.1)
  368. return mode
  369. end
  370. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  371. local curpos = startpos
  372. for i = 1,times do
  373. mag = (startpos-endpos).magnitude offs = {-offse,offse}
  374. offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  375. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  376. if dmg then laz.Touched:connect(function(hit) damage(hit.Parent,dmg[1],dmg[2]) end) end
  377. apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  378. if times == i then
  379. mag2 = (curpos-endpos).magnitude
  380. laz.Size = v3n(.1,.1,mag2)
  381. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  382. else
  383. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  384. end
  385. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p debris:AddItem(laz,livetime)
  386. end
  387. end
  388. ------MESHIDS---
  389. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  390. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  391. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  392. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  393. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549,['cheese'] = 1090700,["pan"] = 24342877,["ketchup"] = 29690481,
  394. ["duck"] = 9419831,["unicorn"]=84003494}---some meshids
  395. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153,
  396. ["cheese"] = 1090703}
  397. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  398. ['midas'] = 17385513;
  399. ['spark'] = 10756118;
  400. ['boom'] = 10730819;
  401. ['plank'] = 10548112;
  402. ['harmonica1'] = 33069371;
  403. ['harmonica2'] = 33069412;
  404. ['thump'] = 10730819;
  405. ['hit'] = 2801263;
  406. ['crunch'] = 15047813;
  407. }
  408. function AddTag(object,tagname) local tag = Instance.new("BoolValue",object) tag.Name = tagname return tag end
  409. function CheckTag(object,tagname) local found = object:FindFirstChild(tagname) if found then return found else return _ end end
  410. function RemoveTag(object,tagname) local found = CheckTag(object,tagname) if found then found:Remove() end end
  411. for i,v in pairs(soundids) do ---Remove sounds
  412. for _,q in pairs(char.Head:children()) do
  413. if q.Name == i then q:Remove() end
  414. end
  415. end
  416. for i,v in pairs(soundids) do ----Add sounds
  417. sound = Instance.new("Sound")
  418. sound.SoundId = "http://www.roblox.com/asset/?id="..v
  419. sound.Name = i
  420. sound.Parent = char.Head
  421. end
  422. genNew('Sound',char.Head,{
  423. Name = 'slash';
  424. SoundId = 'rbxasset://sounds//swordslash.wav'
  425. })
  426.  
  427. waitbp = function(a,r) while (a.Parent.Position-a.position).magnitude > r do wait() end end
  428.  
  429. M = {["R"] = function(a,b) return math.random(a,b) end,
  430. ["Cos"] = function(a) return math.cos(a) end,
  431. ["Sin"] = function(a) return math.sin(a) end,
  432. ["D"] = function(a) return math.rad(a) end
  433. }
  434.  
  435. function findground(position,radius,ignore)
  436. if ignore then
  437. ig = ignore table.insert(ig,m)
  438. else ig = {m}
  439. end
  440. local ray = Ray.new(position.p,position.p+(position.p-v3n(0,200,0)).unit*radius)
  441. local obj,pos2 = Workspace:FindPartOnRayWithIgnoreList(ray,ig)
  442. if obj and pos2 then return obj,pos2 else return nil end
  443. end
  444. rweld = _
  445. faketorso = _
  446. function faketor()
  447. if rtorso == torso then
  448. torso.Transparency = 1
  449. faketorso = T.P(2,2,1,'White',0,false,false,char)
  450. rweld = T.W(faketorso,torso,0,0,0,0,0,0)
  451. rtorso = faketorso hw.Part1 = rtorso
  452. for i,v in pairs({lh,ls,rh,rs}) do v.Part0 = rtorso end
  453. elseif rtorso ~= torso then
  454. rtorso = torso
  455. for i,v in pairs({lh,ls,rh,rs}) do v.Part0 = rtorso end
  456. hw.Part1 = torso
  457. faketorso:Remove()
  458. rweld:Remove()
  459. torso.Transparency = 0
  460. end
  461.  
  462. end
  463.  
  464. function calcp(a,b) --- Direction CFrame
  465. return cfn(a,v3n(b.x,a.y,b.z))
  466. end
  467.  
  468. function weldall(q)
  469. if q == 1 then a,b = 1,2 else a,b = -1,0 end
  470. for i = a,b do lock.R(i) lock.L(i) end
  471. end
  472.  
  473. function speak(a,b)
  474. game:GetService('Chat'):Chat(p,a,b)
  475. end
  476. function FindPlayers(a,b,c) --- Finds Players near a part
  477. list = {}
  478. for _,v in pairs(Workspace:children()) do
  479. if v:IsA("Model") then
  480. for _,child in pairs(v:children()) do
  481. if child:IsA("Humanoid") then
  482. if c and child.Parent ~= char then
  483. if (a-child.Torso.Position).magnitude < b then
  484. table.insert(list,child.Parent)
  485. end
  486. elseif not c then
  487. if (a-child.Torso.Position).magnitude < b then
  488. table.insert(list,child.Parent)
  489. end
  490. end
  491. end
  492. end
  493. end
  494. end
  495. return list
  496. end
  497. --------UTILITIES END-------
  498. Staff = Instance.new("Model",m)
  499.  
  500. hdl = T.P(.5,4,.5,'White',0,false,false,Staff)
  501. T.FM(hdl,'cylinder',1,1,1)
  502. hw = T.W(hdl,rtorso,0,0,.75,0,0,M.D(-45))
  503.  
  504. p = T.P(2,2,2,'Black',0,false,false,Staff) p.Shape = 0
  505. T.W(p,hdl,0,3,0,0,0,0)
  506. p2 = T.P(1,1,1,'White',0,false,false,Staff)
  507. T.FM(p2,'crown',.9,.9,.9)
  508. T.W(p2,hdl,0,2,.2,math.pi,0,0)
  509.  
  510. hat = T.P(1,1,1,'White',0,false,false,Staff)
  511. T.FM(hat,49927327,1,1,1,'rainbow')
  512. T.W(hat,p,0,1.4,0,0,0,0)
  513. hat = T.P(1,1,1,'White',0,false,false,Staff)
  514. T.FM(hat,22053998,1.2,1,1,'rainbow')
  515.  
  516. T.W(hat,p,0,.5,-.5,0,0,0)
  517. p2 = T.P(.5,1.5,.4,'White',0,false,false,Staff)
  518. T.FM(p2,'sphere',1,1,1)
  519. T.W(p2,p,0,-1,-.75,0,0,0)
  520. mouth = T.P(.5,.1,.1,'Nougat',0,false,false,Staff)
  521. mouth_mesh = T.FM(mouth,'sphere',1,1,1)
  522. mouth_weld = T.W(mouth,p,0,-.5,-.8,0,0,0) mouth_weld_normal = mouth_weld.C1
  523.  
  524.  
  525. equipped = false
  526.  
  527. -----------ZOMBIE MAKER FUNCTION------------
  528. function Exorcism()
  529. pos = torso.Position+torso.CFrame.lookVector*3+v3n(0,-3,0)
  530.  
  531. person = Instance.new("Model",Workspace)
  532. person.Name = 'Zombie'
  533.  
  534. ----PARTS-------
  535. local hed = T.P(1,1,1,'White',0,true,false,person) hed.Name = 'Head'
  536. Instance.new("SpecialMesh",hed).Scale = v3n(1.25,1.25,1.25)
  537. local tor = T.P(2,2,1,'White',0,true,false,person) tor.Name = 'Torso'
  538. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Left Arm'
  539. q = T.W(ar,tor,-.5,0.5,0,0,math.pi/2,0,tor)
  540. q.C0 = cfn(1,0.5,0)*ang(0,math.pi/2,0)
  541. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Right Arm'
  542. q2 = T.W(ar,tor,.5,0.5,0,0,math.pi/2,0,tor)
  543. q2.C0 = cfn(-1,0.5,0)*ang(0,math.pi/2,0)
  544.  
  545. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Right Leg'
  546. T.W(ar,tor,-.5,-2,0,0,0,0,tor)
  547. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Left Leg'
  548. T.W(ar,tor,.5,-2,0,0,0,0,tor)
  549.  
  550. T.W(hed,tor,0,1.5,0,0,0,0,tor)
  551.  
  552. ----PARTS-------
  553.  
  554. q.MaxVelocity = .1
  555. q.DesiredAngle = math.pi/2
  556. q2.MaxVelocity = .1
  557. q2.DesiredAngle = math.pi/2
  558.  
  559. local hum = Instance.new("Humanoid",person)
  560. Instance.new("Skin",person).SkinColor = BrickColor.new('Earth green')
  561. tor.CFrame = calcp(torso.Position+torso.CFrame.lookVector*5,torso.Position)
  562.  
  563. shirt = Instance.new('Shirt',person)
  564. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=79001892'
  565.  
  566. pants = Instance.new('Pants',person)
  567. pants.PantsTemplate = 'http://www.roblox.com/asset/?id=79001892'
  568. crown = T.P(1,1,1,'White',0,false,false)
  569. T.FM(crown,1031410,1,1,1,1031417)
  570. T.W(crown,hed,-.2,.85,0,0,0,M.D(20))
  571. face = T.Dec(hed,'Front','http://www.roblox.com/asset/?id=65180938')
  572.  
  573. ---DYING---
  574. hum.Died:connect(function() wait(2) hum.Parent:Remove() end)
  575. ---DYING---
  576. end
  577. -----------ZOMBIE MAKER FUNCTION------------
  578.  
  579.  
  580. function Equip()
  581. if not equipped then
  582. equipped = true
  583. hw.Part1 = rarm
  584. speak('At your service','Blue')
  585. hw.C1 = cfn(0,-1,0)*ang(-math.pi/2,0,0)
  586. elseif equipped then
  587. equipped = false
  588. hw.Part1 = rtorso
  589. hw.C1 = cfn(0,0,.75)*ang(0,0,M.D(-45))
  590. end
  591. normh = hw.C1
  592. end
  593. function Fly(mouse)
  594. bp = T.BP(torso,torso.Position)
  595. bg = T.BG(torso)
  596. holding = true
  597. lock.R(1) lock.L(1) lock.R(2) lock.L(2)
  598. rw.C1 = normposr*ang(0,0,M.D(30))
  599. lw.C1 = normposl*ang(0,0,M.D(-30))
  600. rhw.C1 = normposr2*ang(0,0,M.D(-30))*cfn(-.4,.1,0)
  601. lhw.C1 = normposl2*ang(0,0,M.D(30))*cfn(.4,.1,0)
  602. while holding do
  603. unit = (torso.Position-mouse.hit.p).unit
  604. bp.position = bp.position+unit*-5
  605. bg.cframe = cfn(torso.Position,mouse.hit.p)*ang(-math.pi/2,0,0)
  606. wait()
  607. end
  608. for i = -1,0 do lock.R(i) lock.L(i) end
  609. bp:Remove()
  610. bg:Remove()
  611. end
  612.  
  613. function earthdragon(mouse)
  614. local ground,_ = findground(torso.CFrame,10,{char})
  615. local mag = (torso.Position-mouse.hit.p).magnitude
  616. if ground then
  617. T.C(function()
  618. local dragon = Instance.new("Model",m)
  619. local main = T.P(1,1,1,'White',1,false,true)
  620. local old = main
  621. s = 10
  622. T.C(function()
  623. while wait() do
  624. wait()
  625. if #dragon:children() > 0 then
  626.  
  627. old.CFrame = cfn(main.Position,old.Position)
  628. for i,v in pairs(dragon:children()) do
  629. if i == #dragon:children() then
  630. old = v
  631. v.CFrame = cfn(old.Position,v.Position)*cfn(0,0,-s)
  632. else
  633. v.CFrame = cfn(old.Position,v.Position)*cfn(0,0,-s)
  634. end
  635. old = v
  636. end
  637. end
  638. end
  639. end)
  640.  
  641. for i = 1,mag/10 do
  642. local cube = genNew('Part',dragon,{
  643. BrickColor = ground.BrickColor;
  644. Size = v3n(s,s,s);
  645. Anchored = true;
  646. TopSurface = ground.TopSurface;
  647. BottomSurface = ground.BottomSurface;
  648. CanCollide = false;
  649. Material = ground.Material;
  650. })
  651. cube.CFrame = p.CFrame
  652. end
  653. local r = mag/2
  654. holding = true
  655.  
  656. local cf = cfn(torso.Position,mouse.hit.p)*cfn(0,0,-r)*ang(0,-math.pi/2,0)
  657. for i = 0,360-s,3 do
  658. wait()
  659. main.CFrame = cf*cfn(M.Cos(M.D(i))*r,M.Sin(M.D(i))*r,0)
  660. end
  661. dragon:Remove()
  662. end)
  663. end
  664. end
  665.  
  666. neck2 = _
  667. function necko(a) if a == 1 then neck2 = T.W(char.Head,faketorso,0,1.5,0,0,0,0) normposn2 = neck2.C0 elseif a == 0 then neck2:Remove() end end
  668.  
  669. ef = function(a)
  670. T.C(function()
  671. local p = T.P(1,1,1,'White',0,false,true)
  672. p.CFrame = a
  673. local msh = T.FM(p,'ring',1,1,1)
  674. for i,v in pairs(FindPlayers(p.Position,5)) do damage(v,5,.1) end
  675. for i = 1,5 do
  676. msh.Scale = v3n(i,i,1)
  677. p.Transparency = i/5
  678. wait()
  679. end
  680. p:Remove()
  681. end)
  682. end
  683.  
  684. function Punches()
  685. faketor()
  686. lock.R(1) lock.L(1)
  687. hw.Part1 = torso
  688. o = 1*.95
  689. for _ = 1,5 do
  690. speak('One','Red')
  691. T.S('hit',2)
  692. for i = 0,1,o do
  693. wait()
  694. rweld.C1 = cfn()*ang(0,M.D(40*i),0)
  695. rw.C1 = normposr*ang(M.D(90*i),0,M.D(40*i))
  696. lw.C1 = normposl*ang(M.D(90*i),0,M.D(40*i))
  697. end
  698.  
  699. ef(rarm.CFrame*cfn(0,-1,0)*ang(math.pi/2,0,0))
  700. for i = 1,0,-o do
  701. wait()
  702. rweld.C1 = cfn()*ang(0,M.D(40*i),0)
  703. rw.C1 = normposr*ang(M.D(90*i),0,M.D(40*i))
  704. lw.C1 = normposl*ang(M.D(90*i),0,M.D(40*i))
  705. end
  706. speak('Two','Red')
  707. T.S('hit',2)
  708. for i = 0,1,o do
  709. wait()
  710. rweld.C1 = cfn()*ang(0,M.D(-40*i),0)
  711. rw.C1 = normposr*ang(M.D(90*i),0,M.D(-40*i))
  712. lw.C1 = normposl*ang(M.D(90*i),0,M.D(-40*i))
  713. end
  714. ef(larm.CFrame*cfn(0,-1,0)*ang(math.pi/2,0,0))
  715. for i = 1,0,-o do
  716. wait()
  717. rweld.C1 = cfn()*ang(0,M.D(-40*i),0)
  718. rw.C1 = normposr*ang(M.D(90*i),0,M.D(-40*i))
  719. lw.C1 = normposl*ang(M.D(90*i),0,M.D(-40*i))
  720. end
  721. end
  722. replics = {'Even my granny punches harder!';'You Weakling!';'Do it H-A-R-D-E-R!';'U gotta do better!';'That wuldnt hurt a fly!';'YOU CANT BE SERIOUS!';'That was WAY TOO SLOW!';'You totally MISSED!';}
  723. speak(replics[math.random(#replics)],'Red')
  724. rweld.C1 = cfn()
  725. faketor()
  726. lock.R(0) lock.L(0)
  727. end
  728.  
  729. function Kick()
  730. faketor()
  731. necko(1)
  732. weldall(1)
  733. local con = lleg.Touched:connect(function(hit) hum = damage(hit.Parent,30,.5) if hum then
  734. hum.Sit = true
  735. hum.Torso.Velocity = calcp(torso.Position,hum.Torso.Position).lookVector*100+v3n(0,100,0)
  736. end
  737. end)
  738. o = 1/5
  739. for i = 0,1,o do
  740. lhw.C1 = normposl2*ang(M.D(-90*i),0,0)
  741. rhw.C1 = normposr2*ang(M.D(45*i),0,0)
  742. rw.C1 = normposr*ang(M.D(160*i),0,0)
  743. lw.C1 = normposl*ang(M.D(160*i),0,0)
  744. rweld.C1 = cfn()*ang(M.D(-20*i),0,0)
  745. neck2.C0 = normposn2*ang(M.D(20*i),0,0)*cfn(0,0,.3*i)
  746. wait()
  747. end
  748. for i = 1,0,-o do
  749. lhw.C1 = normposl2*ang(M.D(-90*i),0,0)
  750. rhw.C1 = normposr2*ang(M.D(45*i),0,0)
  751. rw.C1 = normposr*ang(M.D(160*i),0,0)
  752. lw.C1 = normposl*ang(M.D(160*i),0,0)
  753. rweld.C1 = cfn()*ang(M.D(-20*i),0,0)
  754. neck2.C0 = normposn2*ang(M.D(20*i),0,0)*cfn(0,0,.3*i)
  755. wait()
  756. end
  757.  
  758. for i = 0,1,o do
  759. rhw.C1 = normposr2*ang(M.D(-45*i),0,0)*cfn(0,0,.4*i)
  760. lhw.C1 = normposl2*ang(M.D(80*i),0,0)*cfn(0,-.3*i,-.2*i)
  761. rw.C1 = normposr*ang(M.D(-60*i),0,0)
  762. lw.C1 = normposl*ang(M.D(-60*i),0,0)
  763. rweld.C1 = cfn()*ang(M.D(30*i),0,0)
  764. neck2.C0 = normposn2*ang(M.D(-20*i),0,0)*cfn(0,0,-.2*i)
  765. wait()
  766. end
  767. for i = 1,0,-o do
  768. rhw.C1 = normposr2*ang(M.D(-45*i),0,0)*cfn(0,0,.4*i)
  769. lhw.C1 = normposl2*ang(M.D(80*i),0,0)*cfn(0,-.3*i,-.2*i)
  770. rw.C1 = normposr*ang(M.D(-60*i),0,0)
  771. lw.C1 = normposl*ang(M.D(-60*i),0,0)
  772. rweld.C1 = cfn()*ang(M.D(30*i),0,0)
  773. neck2.C0 = normposn2*ang(M.D(-20*i),0,0)*cfn(0,0,-.2*i)
  774. wait()
  775. end
  776. faketor() con:disconnect()
  777. weldall(0)
  778. end
  779.  
  780. sword = _
  781.  
  782. function SwordOut()
  783. lock.R(1)
  784. if not sword then
  785. speak('Time for sword training','Blue')
  786. for i = 0,1,.1 do
  787. rw.C1 = normposr*ang(M.D(90*i),0,0)
  788. wait()
  789. end
  790. for i = 0,1,.2 do
  791. rw.C1 = holdpos*ang(M.D(40*i),0,M.D(10*i))
  792. mouth_mesh.Scale = v3n(1,2*i,1)
  793. mouth_weld.C1 = mouth_weld_normal*cfn(0,.2*i,-.1*i)
  794. wait()
  795. end
  796. sword = Instance.new("Model",m)
  797. sword_hdl = T.P(.1,2,.1,'White',0,false,false,sword) T.FM(sword_hdl,'cylinder',1,1,1)
  798. sword_tip = T.P(.3,1,.3,'New Yeller',0,false,false,sword)
  799.  
  800. sword_hdl_wld = T.W(sword_hdl,mouth,0,0,0,math.pi/2,0,0)
  801. sword_tip_wld = T.W(sword_tip,sword_hdl,0,-2.5,0,0,0,0)
  802. for i = 0,1,.2 do
  803. sword_tip.Size = v3n(.3,5*i,.3)
  804. sword_tip_wld.Parent,sword_tip_wld.Part1 = m,sword_hdl
  805. sword_tip_wld.C1 = cfn(0,3*i,0)
  806. sword_hdl_wld.C1 = cfn(0,0,-1.25*i)*ang(-math.pi/2+M.D(90*i),0,M.D(45*i))
  807. wait()
  808. end
  809. sword_hdl_wld.Part1 = rarm
  810. sword_hdl_wld.C1 = cfn(0,-1,0)*ang(-math.pi/2,0,0) npos = sword_hdl_wld.C1
  811. for i = 1,0,-.2 do
  812. rw.C1 = holdpos*ang(M.D(40*i),0,M.D(10*i))
  813. mouth_mesh.Scale = v3n(1,(2*i)+1,1)
  814. mouth_weld.C1 = mouth_weld_normal*cfn(0,.2*i,-.1*i)
  815. wait()
  816. end
  817. rw.C1 = holdpos
  818. lock.R(0)
  819. else sword:Remove() sword = nil lock.R(0)
  820. end
  821. end
  822. function Slash()
  823. local con = sword_tip.Touched:connect(function(hit) damage(hit.Parent,10,.1) end)
  824. lock.R(1) T.S('slash',1)
  825. for i = 0,1,1/3 do
  826. rw.C1 = holdpos*ang( M.D(30*i),M.D(60*i),M.D(-40*i) )
  827. wait()
  828. end
  829. old = rw.C1
  830. for i = 0,1,1/3 do
  831. rw.C1 = old*ang(M.D(-120*i),0,0)
  832. wait()
  833. end
  834. for i = 1,0,-1/3 do
  835. rw.C1 = old*ang(M.D(-120*i),0,0)
  836. wait()
  837. end
  838. for i = 1,0,-1/3 do
  839. rw.C1 = holdpos*ang( M.D(30*i),M.D(60*i),M.D(-40*i) )
  840. wait()
  841. end
  842. lock.R(0)
  843. con:disconnect()
  844. end
  845.  
  846. function Grab()
  847. if not huma then
  848. found = _
  849. for i,v in pairs(FindPlayers(torso.Position,10,'')) do
  850. if not found then
  851. found = v
  852. end
  853. end
  854. if found then huma = found.Humanoid
  855. lock.R(1)
  856. huma_wld = T.W(huma.Torso,torso,0,.1,-1.1,0,0,0)
  857. rw.C1 = holdpos*ang(M.D(30),0,M.D(30))
  858. sword_hdl_wld.C1 = npos*ang(0,0,M.D(90))
  859. huma.PlatformStand = true
  860. huma_con = huma.Changed:connect(function(prop) if prop == 'PlatformStand' then huma.PlatformStand = true end end)
  861. end
  862. else
  863. speak('Muahahahaa!','Blue')
  864. f = T.F(p,5,3,'Magenta')
  865. wait(2)
  866. f.Parent = huma.Torso
  867. huma.Health = 0
  868. huma = _
  869. huma_wld:Remove()
  870. sword_hdl_wld.C1 = npos
  871. lock.R(0)
  872. end
  873. end
  874. function Release()
  875. if huma then
  876. huma_wld:Remove()
  877. huma_con:disconnect()
  878. huma.PlatformStand = false
  879. huma = nil
  880. sword_hdl_wld.C1 = npos
  881. lock.R(0)
  882. end
  883. end
  884.  
  885. function Dance()
  886. faketor()
  887. weldall(1)
  888. for _,v in pairs({{0,1,.2},{1,0,-.2}}) do
  889. for i = v[1],v[2],v[3] do
  890. rweld.C1 = cfn()*ang(0,M.D(90*i),0)
  891. rw.C1 = normposr*cfn(-.3*i,.4*i,0)*ang(0,0,M.D(120*i))
  892. lw.C1 = normposl*cfn(.3*i,0,0)*ang(0,0,M.D(-50*i))
  893. wait()
  894. end
  895. end
  896. for _,v in pairs({{0,1,.2},{1,0,-.2}}) do
  897. for i = v[1],v[2],v[3] do
  898. rweld.C1 = cfn()*ang(0,M.D(-90*i),0)
  899. lw.C1 = normposl*cfn(.3*i,0,0)*ang(0,0,M.D(-120*i))
  900. rw.C1 = normposr*cfn(-.3*i,.4*i,0)*ang(0,0,M.D(50*i))
  901. wait()
  902. end
  903. end
  904. faketor()
  905. weldall(0)
  906. end
  907. charge = 0
  908. function Rasengan()
  909. lock.R(1) lock.L(1)
  910. for i = 0,1,.1 do
  911. rw.C1 = normposr*cfn(-.2*i,0,-.3*i)*ang(M.D(90*i),0,M.D(-40*i))
  912. lw.C1 = normposl*cfn(.2*i,0,-.3*i)*ang(M.D(90*i),0,M.D(40*i))
  913. wait()
  914. end
  915. local brick = T.P(1,1,1,'Deep blue',.5,false,false)
  916. local wld = T.W(brick,larm,0,-1.5,0,0,0,0)
  917. local msh = T.FM(brick,'sphere',1,1,1)
  918. holding = true
  919. T.C(function() while holding do spaas(brick.Position,1,3,5,'New Yeller') wait(.3) end end)
  920. while holding do
  921. if charge < 5 then
  922. charge = charge+1
  923. msh.Scale = v3n(charge,charge,charge)
  924. else break
  925. end
  926. wait(.5)
  927. end
  928. for i = 1,-.5,-.1 do
  929. rw.C1 = normposr*cfn(-.2*i,0,-.3*i)*ang(M.D(90*i),0,M.D(-40*i))
  930. lw.C1 = normposl*cfn(.2*i,0,-.3*i)*ang(M.D(90*i),0,M.D(40*i))
  931. wait()
  932. end
  933. char.Humanoid.WalkSpeed = 100
  934. wait(1)
  935. for i = -.5,0,1/5 do
  936. rw.C1 = normposr*cfn(-.2*i,0,-.3*i)*ang(M.D(90*i),0,M.D(-40*i))
  937. lw.C1 = normposl*cfn(.2*i,0,-.3*i)*ang(M.D(90*i),0,M.D(40*i))
  938. wait()
  939. end
  940. for i = 0,1,1/5 do
  941. lw.C1 = normposl*ang(M.D(90*i),0,0)
  942. wait()
  943. end
  944. char.Humanoid.WalkSpeed = 16
  945. wld:Remove()
  946. brick.Anchored = true
  947. msh.MeshId = "rbxassetid://"..meshids['spikeb']
  948. local cha = charge
  949. T.C(function()
  950. for i = 0,70,2 do
  951. msh.Scale = v3n(cha+i/2,cha+i/2,cha+i/2)
  952. brick.Transparency = i/70
  953. wait()
  954. end
  955. brick:Remove()
  956. end)
  957. charge = 0
  958. lock.R(0) lock.L(0)
  959. end
  960.  
  961. ---GUIS---
  962. udim = function(a,b) return UDim2.new(a,0,b,0) end
  963.  
  964. beans,bar = 3,0
  965. pcall(function() ply.PlayerGui.lol:Remove() end)
  966. gui = Instance.new("ScreenGui",ply.PlayerGui)
  967. gui.Name = 'lol'
  968. mainframe = genNew('Frame',gui,{
  969. Size = udim(.1,.1);
  970. Position = udim(0,.5);})
  971. sensuframe = genNew('Frame',mainframe,{
  972. Size = udim(.7,1);
  973. Position = udim(0,0);})
  974. refillframe = genNew('Frame',mainframe,{
  975. Size = udim(.3,1);
  976. Position = udim(.7,0);})
  977.  
  978. function update(a) fr,huh,o = _,_,_
  979. if a == 'Beans' then o = 1/3 image = 'http://www.roblox.com/asset/?id=84570235' fr = sensuframe color = 'White' huh = beans tran = 1
  980. elseif a == 'Bar' then o = 1/5 image = '' fr = refillframe color = 'New Yeller' huh = bar tran = 0 end
  981. fr:ClearAllChildren()
  982. for i = 1-tran,huh do
  983. but = genNew('ImageLabel',fr,{
  984. Size = udim(o,1);
  985. Position = udim(o*(-1+i),0);
  986. Image = image;
  987. BackgroundTransparency = tran;
  988. BackgroundColor = BrickColor.new(color);
  989. })
  990. end
  991. end
  992. update('Beans')
  993. -----------
  994. sitbp = nil
  995. function sit()
  996. if not sitbp then
  997. lock.R(2) lock.L(2)
  998. sitbp = T.BP(torso,torso.Position)
  999. for i = 0,1,.1 do
  1000. wait()
  1001. rhw.C1 = normposr2*ang(M.D(90*i),0,M.D(-30*i))
  1002. lhw.C1 = normposl2*ang(M.D(90*i),0,M.D(30*i))
  1003. sitbp.position = torso.Position - v3n(0,.9*i,0)
  1004. end
  1005. elseif sitbp then
  1006. for i = 1,0,-.1 do
  1007. wait()
  1008. rhw.C1 = normposr2*ang(M.D(90*i),0,M.D(-30*i))
  1009. lhw.C1 = normposl2*ang(M.D(90*i),0,M.D(30*i))
  1010. sitbp.position = torso.Position - v3n(0,.9*i,0)
  1011. end
  1012. lock.R(-1) lock.L(-1)
  1013. sitbp:Remove() sitbp = nil
  1014. end
  1015. end
  1016.  
  1017. function Eat()
  1018. if beans > 0 then
  1019. lock.R(1)
  1020. for i = 0,1,.1 do
  1021. rw.C1 = normposr*ang(M.D(120*i),0,M.D(-40*i))
  1022. wait()
  1023. end
  1024. T.S('crunch',1)
  1025. beans = beans-1 update('Beans')
  1026. hum = FindHumanoid(char,'')
  1027. hum.Health = hum.MaxHealth
  1028. for i = 1,0,-.1 do
  1029. rw.C1 = normposr*ang(M.D(120*i),0,M.D(-40*i))
  1030. wait()
  1031. end
  1032. lock.R(0)
  1033. else
  1034. sit()
  1035. speak('Refilling','Green')
  1036. while beans < 3 do for i = 1,5 do bar = i update('Bar') wait(1) end beans=beans+1 update('Beans') bar = 0 end
  1037. bar = 0 refillframe:ClearAllChildren()
  1038. sit()
  1039. end
  1040. end
  1041.  
  1042. klist = {
  1043. {'r',function() if sword then Release() else Equip() end end};
  1044. {'t',function(a) earthdragon(a) end,''};
  1045. {'q',function() Punches() end};
  1046. {'e',function() Kick() end};
  1047. {'f',function() SwordOut() end};
  1048. {'c',function() Rasengan() end,''};
  1049. {'z',function() Eat() end};
  1050. {'g',function() if sword then Grab() else Dance() end end};
  1051. {'j',function() Exorcism() end};
  1052. }
  1053.  
  1054. onButton1Down = function(mouse)
  1055. if sword then
  1056. Slash()
  1057. else
  1058. Fly(mouse)
  1059. end
  1060. end
  1061.  
  1062. hop.Deselected:connect(function() lock.R(0) lock.L(0) end)
  1063. hop.Selected:connect(function(mouse)
  1064. mouse.Button1Up:connect(function() holding = false end)
  1065. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
  1066. mouse.KeyDown:connect(function(key)
  1067. if attacking then return end
  1068. for i,v in pairs(klist) do
  1069. if key == v[1] then attacking = true v[2](mouse) attacking = false end
  1070. end
  1071. end)
  1072. mouse.Button1Down:connect(function() if attacking then return end attacking = true onButton1Down(mouse) attacking = false end)
  1073. end)
  1074. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement