Advertisement
Axelpuff

mh

Aug 14th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.59 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  2. print("FE Compatibility: by WaverlyCole & Mokiros")
  3. InternalData = {}
  4. do
  5. script.Parent = owner.Character
  6. local Event = Instance.new("RemoteEvent")
  7. Event.Name = "UserInput"
  8. local function NewFakeEvent()
  9. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  10. return Fake
  11. end
  12. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  13. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  14. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  15. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  16. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  17. local function TriggerEvent(self,Event,...)
  18. local Trigger = Mouse[Event]
  19. if Trigger and Trigger.fakeEvent and Trigger.Function then
  20. Trigger.Function(...)
  21. end
  22. end
  23. Mouse.TrigEvent = TriggerEvent
  24. UserInputService.TrigEvent = TriggerEvent
  25. Event.OnServerEvent:Connect(function(FiredBy,Input)
  26. if FiredBy.Name ~= owner.Name then end
  27. if Input.MouseEvent then
  28. Mouse.Target = Input.Target
  29. Mouse.Hit = Input.Hit
  30. else
  31. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  32. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  33. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  34. end
  35. for _,Action in pairs(ContextActionService.Actions) do
  36. for _,Key in pairs(Action.Keys) do
  37. if Key==Input.KeyCode then
  38. Action.Function(Action.Name,Input.UserInputState,Input)
  39. end
  40. end
  41. end
  42. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  43. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  44. end
  45. end)
  46. InternalData["Mouse"] = Mouse
  47. InternalData["ContextActionService"] = ContextActionService
  48. InternalData["UserInputService"] = UserInputService
  49. Event.Parent = NLS([[
  50. local Player = owner
  51. local Event = script:WaitForChild("UserInput")
  52. local UserInputService = game:GetService("UserInputService")
  53. local Mouse = Player:GetMouse()
  54. local Input = function(Input,gameProcessedEvent)
  55. if gameProcessedEvent then return end
  56. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  57. end
  58. UserInputService.InputBegan:Connect(Input)
  59. UserInputService.InputEnded:Connect(Input)
  60. local Hit,Target
  61. while wait(1/30) do
  62. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  63. Hit,Target = Mouse.Hit,Mouse.Target
  64. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  65. end
  66. end
  67. ]],owner.Character)
  68. end
  69. RealGame = game;game = setmetatable({},{
  70. __index = function (self,Index)
  71. local Sandbox = function (Thing)
  72. if Thing:IsA("Player") then
  73. local RealPlayer = Thing
  74. return setmetatable({},{
  75. __index = function (self,Index)
  76. local Type = type(RealPlayer[Index])
  77. if Type == "function" then
  78. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  79. return function (self)
  80. return InternalData["Mouse"]
  81. end
  82. end
  83. return function (self,...)
  84. return RealPlayer[Index](RealPlayer,...)
  85. end
  86. else
  87. if Index == "PlrObj" then
  88. return RealPlayer
  89. end
  90. return RealPlayer[Index]
  91. end
  92. end;
  93. __tostring = function(self)
  94. return RealPlayer.Name
  95. end
  96. })
  97. end
  98. end
  99. if RealGame[Index] then
  100. local Type = type(RealGame[Index])
  101. if Type == "function" then
  102. if Index:lower() == "getservice" or Index:lower() == "service" then
  103. return function (self,Service)
  104. if Service:lower() == "players" then
  105. return setmetatable({},{
  106. __index = function (self2,Index2)
  107. local RealService = RealGame:GetService(Service)
  108. local Type2 = type(Index2)
  109. if Type2 == "function" then
  110. return function (self,...)
  111. return RealService[Index2](RealService,...)
  112. end
  113. else
  114. if Index2:lower() == "localplayer" then
  115. return Sandbox(owner)
  116. end
  117. return RealService[Index2]
  118. end
  119. end;
  120. __tostring = function(self)
  121. return RealGame:GetService(Service).Name
  122. end
  123. })
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["ContextActionService"]
  126. elseif Service:lower() == "contextactionservice" then
  127. return InternalData["UserInputService"]
  128. elseif Service:lower() == "runservice" then
  129. return setmetatable({},{
  130. __index = function(self2,Index2)
  131. local RealService = RealGame:GetService(Service)
  132. local Type2 = type(Index2)
  133. if Type2 == "function" then
  134. return function (self,...)
  135. return RealService[Index2](RealService,...)
  136. end
  137. else
  138. if Index2:lower() == "bindtorenderstep" then
  139. return function (self,Name,Priority,Function)
  140. return RealGame:GetService("RunService").Stepped:Connect(Function)
  141. end
  142. end
  143. if Index2:lower() == "renderstepped" then
  144. return RealService["Stepped"]
  145. end
  146. return RealService[Index2]
  147. end
  148. end
  149. })
  150. else
  151. return RealGame:GetService(Service)
  152. end
  153. end
  154. end
  155. return function (self,...)
  156. return RealGame[Index](RealGame,...)
  157. end
  158. else
  159. if game:GetService(Index) then
  160. return game:GetService(Index)
  161. end
  162. return RealGame[Index]
  163. end
  164. else
  165. return nil
  166. end
  167. end
  168. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  169. print("Complete! Running...")
  170.  
  171.  
  172. --//Paste script below this line.
  173.  
  174. -- Go to line 23 and change it to your name. LOCAL SCRIPT!!!!!
  175.  
  176.  
  177. wt = 0.05 s = script it = Instance.new v3 = Vector3.new c3 = Color3.new ud = UDim2.new cf = CFrame.new ca = CFrame.Angles pi = math.pi rd = math.rad
  178. bc = BrickColor.new ab = math.abs de = math.deg ts = tostring tn = tonumber ti = table.insert tr = table.remove
  179. cr = coroutine.resume cc = coroutine.create
  180. asset = "http://www.roblox.com/asset/?id="
  181. sr = string.reverse sl = string.lower su = string.upper
  182. Serv = {} Serv.p = game:GetService(sr("sreyalP")) Serv.l = game:GetService(sr("gnithgiL"))
  183. Serv.is = game:GetService(sr("ecivreStresnI")) if game:findFirstChild(sr("revreSkrowteN")) then Serv.ns = game:GetService(sr("revreSkrowteN")) else NetworkServer = nil end
  184. Serv.sg = game:GetService(sr("iuGretratS")) Serv.sp = game:GetService(sr("kcaPretratS")) Serv.d = game:GetService(sr("sirbeD"))
  185. Decs = {}
  186. Decs.Crack = "49173398" Decs.Cloud = "1095708" Decs.Spike = "1033714" Decs.Rock = "1290033" Decs.Crown = "1323306"
  187. function ft(tablez,item) if not tablez or not item then return nil end for i=1,#tablez do if tablez == item then return i end end return nil end
  188. function re(par,obj) if type(par) ~= "userdata" or type(obj) ~= "string" then return nil end if par:findFirstChild(obj) then par[obj]:Remove() end end
  189. function pa(pa,sh,x,y,z,c,a,tr,re,bc2) local fp = nil if sh ~= "Wedge" and sh ~= "CornerWedge" then fp = it("Part",pa) fp.Shape = sh fp.formFactor = "Custom" elseif sh == "Wedge" then fp = it("WedgePart",pa) fp.formFactor = "Custom"
  190. elseif sh == "CornerWedge" then fp = it("CornerWedgePart",pa) end fp.Size = v3(x,y,z) fp.CanCollide = c fp.Anchored = false fp.BrickColor = bc(bc2) fp.Transparency = tr fp.Reflectance = re fp.BottomSurface = 0
  191. fp.TopSurface = 0 fp.CFrame = t.CFrame + Vector3.new(0,50,0) fp.Velocity = Vector3.new(0,10,0) fp:BreakJoints() return fp end
  192. function clearit(tab) for xx=1,#tab do tab[xx]:Remove() end end
  193. function weld(pa,p0,p1,x,y,z,a,b,c) local fw = it("Weld",pa) fw.Part0 = p0 fw.Part1 = p1 fw.C0 = cf(x,y,z) *ca(a,b,c) return fw end
  194. function spm(ty,pa,ss) local sp = it("SpecialMesh",pa) sp.MeshType = ty sp.Scale = Vector3.new(ss,ss,ss) end function mbm(pa,sx,sy,sz) local bm = Instance.new("BlockMesh",pa) bm.Scale = Vector3.new(sx,sy,sz) end
  195. function ra(mn,mx,dc) local tms = 1 if dc == nil then dc = 0 end if type(dc) == "number" and dc > 5 then dc = 5 end for zx=1,dc do tms = tms*10 end return math.random(mn*tms,mx*tms)/tms end
  196. p = owner
  197. bp = p.Backpack
  198. pg = p.PlayerGui
  199. c = p.Character
  200. he = c.Head
  201. t = c.Torso
  202. hu = c.Humanoid
  203. mou = p:GetMouse()
  204. re(c,"Hand")
  205. s = 2
  206.  
  207. --tool var
  208. Equip = false
  209. HTrans = 0
  210. HRef = 0
  211. HCol = "a"
  212. LaserCol = "Really black"
  213. LaserCol2 = "Really red"
  214. LaserCol3 = "Really black"
  215. Posing = "Follow"
  216. Facing = "Owner"
  217. Anim = {}
  218. Anim.a = "None"
  219. Anim.b = "None"
  220. Anim.Welding = 0
  221. local fingwide = 1.5*s
  222. local finghei = 2.8
  223. local tiphei = 2.55
  224. handoffset = v3(5,18,-8)*s
  225. bgx,bgy,bgz = -90,0,0
  226. w = {}
  227. Button = false
  228. --
  229. BlastMesh = it("FileMesh")
  230. BlastMesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  231. RingMesh = it("FileMesh")
  232. RingMesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  233. RockMesh = it("FileMesh")
  234. DiamondMesh = it("FileMesh")
  235. DiamondMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  236.  
  237. m = Instance.new("Model",c) m.Name = "Hand"
  238. Palm = pa(m,"Block",6*s,7*s,fingwide*2,true,false,HTrans,HRef,HCol) mbm(Palm,1,1,0.6)
  239. local x,y,z = Palm.Size.x,Palm.Size.y,Palm.Size.z
  240. bPoint1 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  241. Point1 = weld(bPoint1,Palm,bPoint1,-x/2+(fingwide/2),y/2,0,0,0,0)
  242. pPoint1 = pa(m,"Block",fingwide,finghei*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pPoint1,0.9,1,0.9)
  243. wPoint1 = weld(pPoint1,bPoint1,pPoint1,0,pPoint1.Size.y/2,0,0,0,0)
  244. bPoint2 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  245. Point2 = weld(bPoint2,pPoint1,bPoint2,0,pPoint1.Size.y/2,0,0,0,0)
  246. pPoint2 = pa(m,"Block",fingwide,finghei*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pPoint2,0.9,1,0.9)
  247. wPoint2 = weld(pPoint2,bPoint2,pPoint2,0,pPoint1.Size.y/2,0,0,0,0)
  248. bPoint3 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  249. Point3 = weld(bPoint3,pPoint2,bPoint3,0,pPoint2.Size.y/2,0,0,0,0)
  250. pPoint3 = pa(m,"Block",fingwide,tiphei*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pPoint3,0.9,1,0.9)
  251. wPoint3 = weld(pPoint3,bPoint3,pPoint3,0,pPoint3.Size.y/2,0,0,0,0)
  252. bMid1 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  253. Mid1 = weld(bMid1,Palm,bMid1,-x/2+((fingwide/2)+((fingwide)*1)),y/2,0,0,0,0)
  254. pMid1 = pa(m,"Block",fingwide,(finghei*1.1)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pMid1,0.9,1,0.9)
  255. wMid1 = weld(pMid1,bMid1,pMid1,0,pMid1.Size.y/2,0,0,0,0)
  256. bMid2 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  257. Mid2 = weld(bMid2,pMid1,bMid2,0,pMid1.Size.y/2,0,0,0,0)
  258. pMid2 = pa(m,"Block",fingwide,(finghei*1.1)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pMid2,0.9,1,0.9)
  259. wMid2 = weld(pMid2,bMid2,pMid2,0,pMid1.Size.y/2,0,0,0,0)
  260. bMid3 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  261. Mid3 = weld(bMid3,pMid2,bMid3,0,pMid2.Size.y/2,0,0,0,0)
  262. pMid3 = pa(m,"Block",fingwide,(tiphei*1.1)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pMid3,0.9,1,0.9)
  263. wMid3 = weld(pMid3,bMid3,pMid3,0,pMid3.Size.y/2,0,0,0,0)
  264. bRing1 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  265. Ring1 = weld(bRing1,Palm,bRing1,-x/2+((fingwide/2)+((fingwide)*2)),y/2,0,0,0,0)
  266. pRing1 = pa(m,"Block",fingwide,(finghei*0.98)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pRing1,0.9,1,0.9)
  267. wRing1 = weld(pRing1,bRing1,pRing1,0,pRing1.Size.y/2,0,0,0,0)
  268. bRing2 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  269. Ring2 = weld(bRing2,pRing1,bRing2,0,pRing1.Size.y/2,0,0,0,0)
  270. pRing2 = pa(m,"Block",fingwide,(finghei*0.98)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pRing2,0.9,1,0.9)
  271. wRing2 = weld(pRing2,bRing2,pRing2,0,pRing1.Size.y/2,0,0,0,0)
  272. bRing3 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  273. Ring3 = weld(bRing3,pRing2,bRing3,0,pRing2.Size.y/2,0,0,0,0)
  274. pRing3 = pa(m,"Block",fingwide,(tiphei*0.98)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pRing3,0.9,1,0.9)
  275. wRing3 = weld(pRing3,bRing3,pRing3,0,pRing3.Size.y/2,0,0,0,0)
  276. bPinkie1 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  277. Pinkie1 = weld(bPinkie1,Palm,bPinkie1,-x/2+((fingwide/2)+((fingwide)*3)),y/2,0,0,0,0)
  278. pPinkie1 = pa(m,"Block",fingwide,(finghei*0.8)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pPinkie1,0.9,1,0.9)
  279. wPinkie1 = weld(pPinkie1,bPinkie1,pPinkie1,0,pPinkie1.Size.y/2,0,0,0,0)
  280. bPinkie2 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  281. Pinkie2 = weld(bPinkie2,pPinkie1,bPinkie2,0,pPinkie1.Size.y/2,0,0,0,0)
  282. pPinkie2 = pa(m,"Block",fingwide,(finghei*0.8)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pPinkie2,0.9,1,0.9)
  283. wPinkie2 = weld(pPinkie2,bPinkie2,pPinkie2,0,pPinkie1.Size.y/2,0,0,0,0)
  284. bPinkie3 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  285. Pinkie3 = weld(bPinkie3,pPinkie2,bPinkie3,0,pPinkie2.Size.y/2,0,0,0,0)
  286. pPinkie3 = pa(m,"Block",fingwide,(tiphei*0.8)*s,fingwide,true,false,HTrans,HRef,HCol) mbm(pPinkie3,0.9,1,0.9)
  287. wPinkie3 = weld(pPinkie3,bPinkie3,pPinkie3,0,pPinkie3.Size.y/2,0,0,0,0)
  288. bThumb1 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  289. Thumb1 = weld(bThumb1,Palm,bThumb1,-x/2+(fingwide/7),-y*0.1,-fingwide*0.25,0,0,0)
  290. pThumb1 = pa(m,"Block",fingwide*1.4,(finghei*1)*s,fingwide*1.4,true,false,HTrans,HRef,HCol) mbm(pThumb1,0.9,1,0.9)
  291. wThumb1 = weld(pThumb1,bThumb1,pThumb1,0,pThumb1.Size.y/2,0,0,0,0)
  292. bThumb2 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  293. Thumb2 = weld(bThumb2,pThumb1,bThumb2,0,pThumb1.Size.y/2,0,0,0,0)
  294. pThumb2 = pa(m,"Block",fingwide*1.3,(finghei*1)*s,fingwide*1.3,true,false,HTrans,HRef,HCol) mbm(pThumb2,0.9,1,0.9)
  295. wThumb2 = weld(pThumb2,bThumb2,pThumb2,0,pThumb1.Size.y/2,0,0,0,0)
  296. bThumb3 = pa(m,"Block",0,0,0,false,false,HTrans,HRef,HCol)
  297. Thumb3 = weld(bThumb3,pThumb2,bThumb3,0,pThumb2.Size.y/2,0,0,0,0)
  298. pThumb3 = pa(m,"Block",fingwide*1.25,(tiphei*1)*s,fingwide*1.25,true,false,HTrans,HRef,HCol) mbm(pThumb3,0.9,1,0.9)
  299. wThumb3 = weld(pThumb3,bThumb3,pThumb3,0,pThumb3.Size.y/2,0,0,0,0)
  300.  
  301. w["a1"] = Pinkie1
  302. w["a2"] = Pinkie2
  303. w["a3"] = Pinkie3
  304. w["b1"] = Ring1
  305. w["b2"] = Ring2
  306. w["b3"] = Ring3
  307. w["c1"] = Mid1
  308. w["c2"] = Mid2
  309. w["c3"] = Mid3
  310. w["d1"] = Point1
  311. w["d2"] = Point2
  312. w["d3"] = Point3
  313. w["e1"] = Thumb1
  314. w["e2"] = Thumb2
  315. w["e3"] = Thumb3
  316. w.e1.C1 = ca(0,rd(35),rd(-20))
  317. w.e2.C1 = ca(rd(20),0,0)
  318. w.e3.C1 = ca(rd(20),0,0)
  319. w.d1.C1 = ca(0,0,rd(-3))
  320. w.c1.C1 = ca(0,0,rd(-1))
  321. w.b1.C1 = ca(0,0,rd(1))
  322. w.a1.C1 = ca(0,0,rd(3))
  323. function c1(wexx,smmx,xx,yy,zz)
  324. coroutine.resume(coroutine.create(function()
  325. local xx2,yy2,zz2 = wexx.C1:toEulerAnglesXYZ()
  326. local aa,bb,cc = wexx.C0.x,wexx.C0.y,wexx.C0.z
  327. local twa = smmx/wt
  328. Anim.Welding = Anim.Welding + 1
  329. for i=0,twa,1 do wexx.C0 = cf(aa,bb,cc)
  330. wexx.C1 = ca(xx2-(((xx2-rd(xx))/twa)*i),yy2-(((yy2-rd(yy))/twa)*i),zz2-(((zz2-rd(zz))/twa)*i))
  331. wait()
  332. end
  333. Anim.Welding = Anim.Welding - 1
  334. end))
  335. end
  336. function CloseFing(fingz,spee) if spee == nil then spee = 1 end c1(w[fingz.. "1"],spee,80,0,0) c1(w[fingz.. "2"],spee,110,0,0) c1(w[fingz.. "3"],spee,30,0,0) end
  337. function OpenFing(fingz,spee) if spee == nil then spee = 1 end c1(w[fingz.. "1"],spee,2,0,0) c1(w[fingz.. "2"],spee,2,0,0) c1(w[fingz.. "3"],spee,2,0,0) end
  338. function HandSign(form,spee) form = form:lower() if spee == nil then spee = 1 end
  339. if form == "f" then
  340. CloseFing("d",spee) CloseFing("a",spee) CloseFing("b",spee)
  341. c1(w["c1"],spee,0,0,0) c1(w["c2"],spee,0,0,0) c1(w["c3"],spee,0,0,0)
  342. c1(w["e1"],spee,70,40,-90) c1(w["e2"],spee,50,0,0) c1(w["e3"],spee,50,0,0)
  343. elseif form == "fist" then
  344. CloseFing("d",spee) CloseFing("a",spee) CloseFing("b",spee) CloseFing("c",spee)
  345. c1(w["e1"],spee,70,40,-90) c1(w["e2"],spee,50,0,0) c1(w["e3"],spee,50,0,0)
  346. elseif form == "pointer" then
  347. CloseFing("a",spee) CloseFing("b",spee) CloseFing("c",spee)
  348. c1(w["d1"],spee,5,0,0) c1(w["d2"],spee,5,0,0) c1(w["d3"],spee,5,0,0)
  349. c1(w["e1"],spee,70,40,-90) c1(w["e2"],spee,50,0,0) c1(w["e3"],spee,50,0,0)
  350. elseif form == "v" then
  351. CloseFing("a",spee) CloseFing("b",spee)
  352. c1(w["c1"],spee,1,0,15) c1(w["c2"],spee,1,0,0) c1(w["c3"],spee,1,0,0)
  353. c1(w["d1"],spee,1,0,-15) c1(w["d2"],spee,1,0,0) c1(w["d3"],spee,1,0,0)
  354. c1(w["e1"],spee,70,40,-90) c1(w["e2"],spee,50,0,0) c1(w["e3"],spee,50,0,0)
  355. elseif form == "free" or form == "five" then
  356. OpenFing("a",spee) OpenFing("b",spee) OpenFing("c",spee) OpenFing("d",spee)
  357. c1(w["e1"],spee,0,35,-20) c1(w["e2"],spee,20,0,0) c1(w["e3"],spee,20,0,0)
  358. elseif form == "ride" then
  359. c1(w["a1"],spee,60,0,0) c1(w["a2"],spee,-30,0,0) c1(w["a3"],spee,-30,0,0)
  360. c1(w["b1"],spee,30,0,0) c1(w["b2"],spee,65,0,0) c1(w["b3"],spee,60,0,0)
  361. c1(w["c1"],spee,30,0,0) c1(w["c2"],spee,65,0,0) c1(w["c3"],spee,60,0,0)
  362. c1(w["d1"],spee,30,0,0) c1(w["d2"],spee,65,0,0) c1(w["d3"],spee,60,0,0)
  363. c1(w["e1"],spee,-70,185,0) c1(w["e2"],spee,30,0,0) c1(w["e3"],spee,30,0,0)
  364. elseif form == "gun" then
  365. CloseFing("a",spee) CloseFing("b",spee)
  366. c1(w["c1"],spee,0,0,1) c1(w["c2"],spee,0,0,0) c1(w["c3"],spee,0,0,0)
  367. c1(w["d1"],spee,0,0,-1) c1(w["d2"],spee,0,0,0) c1(w["d3"],spee,0,0,0)
  368. c1(w["e1"],spee,-60,90,0) c1(w["e2"],spee,20,0,0) c1(w["e3"],spee,-20,0,0)
  369. elseif form == "wide" then
  370. c1(w["a1"],spee,-3,0,45) c1(w["a2"],spee,-3,0,0) c1(w["a3"],spee,-3,0,0)
  371. c1(w["b1"],spee,-3,0,15) c1(w["b2"],spee,-3,0,0) c1(w["b3"],spee,-3,0,0)
  372. c1(w["c1"],spee,-3,0,-15) c1(w["c2"],spee,-3,0,0) c1(w["c3"],spee,-3,0,0)
  373. c1(w["d1"],spee,-3,0,-45) c1(w["d2"],spee,-3,0,0) c1(w["d3"],spee,-3,0,0)
  374. c1(w["e1"],spee,-70,90,0) c1(w["e2"],spee,10,0,0) c1(w["e3"],spee,-10,0,0)
  375. elseif form == "wide2" then
  376. c1(w["a1"],spee,-18,0,45) c1(w["a2"],spee,36,0,0) c1(w["a3"],spee,30,0,0)
  377. c1(w["b1"],spee,-18,0,15) c1(w["b2"],spee,36,0,0) c1(w["b3"],spee,30,0,0)
  378. c1(w["c1"],spee,-18,0,-15) c1(w["c2"],spee,36,0,0) c1(w["c3"],spee,30,0,0)
  379. c1(w["d1"],spee,-18,0,-45) c1(w["d2"],spee,36,0,0) c1(w["d3"],spee,30,0,0)
  380. c1(w["e1"],spee,-50,90,-10) c1(w["e2"],spee,5,0,-30) c1(w["e3"],spee,-10,0,-40)
  381. elseif form == "grab2" then
  382. c1(w["a1"],spee,-70,-65,0) c1(w["a2"],spee,40,0,0) c1(w["a3"],spee,20,0,0)
  383. c1(w["b1"],spee,-70,-20,0) c1(w["b2"],spee,40,0,0) c1(w["b3"],spee,20,0,0)
  384. c1(w["c1"],spee,-70,20,-0) c1(w["c2"],spee,40,0,0) c1(w["c3"],spee,20,0,0)
  385. c1(w["d1"],spee,-70,65,-0) c1(w["d2"],spee,40,0,0) c1(w["d3"],spee,20,0,0)
  386. c1(w["e1"],spee,-70,150,0) c1(w["e2"],spee,30,0,0) c1(w["e3"],spee,30,0,0)
  387. elseif form == "grab3" then
  388. c1(w["a1"],spee,-30,-40,30) c1(w["a2"],spee,50,0,0) c1(w["a3"],spee,35,0,0)
  389. c1(w["b1"],spee,-30,-15,12) c1(w["b2"],spee,50,0,0) c1(w["b3"],spee,35,0,0)
  390. c1(w["c1"],spee,-30,15,-12) c1(w["c2"],spee,50,0,0) c1(w["c3"],spee,35,0,0)
  391. c1(w["d1"],spee,-30,40,-30) c1(w["d2"],spee,50,0,0) c1(w["d3"],spee,35,0,0)
  392. c1(w["e1"],spee,-55,205,0) c1(w["e2"],spee,30,0,0) c1(w["e3"],spee,30,0,0)
  393. end
  394. end
  395. function ColFings(iscol)
  396. pPinkie1.CanCollide = iscol
  397. pPinkie2.CanCollide = iscol
  398. pPinkie3.CanCollide = iscol
  399. pRing1.CanCollide = iscol
  400. pRing2.CanCollide = iscol
  401. pRing3.CanCollide = iscol
  402. pMid1.CanCollide = iscol
  403. pMid2.CanCollide = iscol
  404. pMid3.CanCollide = iscol
  405. pPoint1.CanCollide = iscol
  406. pPoint2.CanCollide = iscol
  407. pPoint3.CanCollide = iscol
  408. pThumb1.CanCollide = iscol
  409. pThumb2.CanCollide = iscol
  410. pThumb3.CanCollide = iscol
  411. end
  412. function ray(Pos, Dir)
  413. return Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999), c)
  414. end
  415. function Earthsplosion(pos,siz,dmg,rndmg,forc,eos) local colz22 = "Really red" if eos == nil or eos == "earth" then eos = "earth" else colz22 = "Really black" eos = "sand" end
  416. coroutine.resume(coroutine.create(function()
  417. if eos == "earth" then local cr = pa(m,"Block",((14*siz)/10)*s,0,((14*siz)/10)*s,false,false,1,0,"") cr.Anchored = true cr.CFrame = pos *ca(rd(0),rd(ra(-360,360)),rd(0)) cr.CFrame = cr.CFrame + v3(ra(-siz*10,siz*10)/22,0,ra(-siz*10,siz*10)/22)
  418. local de = it("Decal",cr) de.Face = "Top" de.Texture = asset .. Decs.Crack Serv.d:AddItem(cr,25) end
  419. for i=1,4 do
  420. coroutine.resume(coroutine.create(function()
  421. local sw = pa(m,"Block",(siz/3)*s,(siz*1.3)*s,(siz/3)*s,true,true,0,0,colz22) sw.Anchored = true sw.CFrame = pos *cf(ra(-3*s,3*s),0,ra(-3*s,3*s)) *ca(rd(ra(-27,27)),rd(ra(-360,360)),rd(ra(-27,27))) local swm = it("SpecialMesh",sw) if eos == "earth" then swm.MeshType = "FileMesh"
  422. swm.MeshId = asset .. Decs.Spike else swm.MeshType = "Sphere" end if eos == "earth" then swm.Scale = v3(sw.Size.x/1.3,sw.Size.y*1.2,sw.Size.z/1.3)
  423. else swm.Scale = v3(sw.Size.x/10,sw.Size.y/37,sw.Size.z/10) end sw.CFrame = sw.CFrame + v3(ra(-0.3*siz*s,0.3*siz*s,7),0,ra(-0.3*siz*s,0.3*siz*s)) sw.CFrame = sw.CFrame * cf(0,-sw.Size.y/1.4,0)
  424. Dustplosion(cf(pos.p+v3(0,2*s,0)),18*s,{"Really red","Really black","Really red"},1)
  425. if eos == "earth" then
  426. for x=1,8 do
  427. sw.CFrame = sw.CFrame *cf(0,sw.Size.y/8,0) wait() end wait(ra(1,5))
  428. for x=1,20 do
  429. sw.CFrame = sw.CFrame *cf(0,-sw.Size.y/20,0) wait()
  430. end sw:Remove()
  431. else
  432. for x=1,25 do
  433. sw.CFrame = sw.CFrame *cf(0,sw.Size.y/25,0) sw.Transparency = x/25 - 0.1 swm.Scale = swm.Scale + v3(0.025,0.025,0.025) wait() end
  434. end sw:Remove()
  435. end)) end
  436. wait(0.3)
  437. DmgHumanoidsNear(pos.p,dmg,rndmg,5.5*s*(siz/4),forc)
  438. end))
  439. end
  440.  
  441. function Dustplosion(onb,scale,col,cls) coroutine.resume(coroutine.create(function()
  442. for x=1,cls do coroutine.resume(coroutine.create(function()
  443. local sw = pa(m,"Block",1*s,0,1*s,false,false,0.2,0,col[ra(1,#col)]) sw.Anchored = true sw.CFrame = onb *ca(rd(ra(-35,35)),rd(ra(-360,360)),rd(ra(-35,35))) local swm = it("SpecialMesh",sw) swm.MeshType = "FileMesh"
  444. swm.MeshId = asset .. Decs.Cloud sw.CFrame = sw.CFrame + v3(ra(-scale,scale)/8,ra(-scale,scale)/8,ra(-scale,scale)/8)
  445. for i=1,scale,0.25 do
  446. swm.Scale = v3(i*1.5,i*1,i*1.5) sw.Transparency = ((i/scale)/2) + 0.45
  447. wait()
  448. end
  449. sw:Remove()
  450. end)) end
  451. end)) end
  452. function ShockWave(onb,scale,col) coroutine.resume(coroutine.create(function() local sw = pa(m,"Block",1*s,0,1*s,false,false,0.2,0,col) sw.Anchored = true sw.CFrame = onb *ca(rd(90),0,0) local swm = it("SpecialMesh",sw) swm.MeshType = "FileMesh" swm.MeshId = RingMesh.MeshId
  453. for i=1,scale,0.75 do swm.Scale = v3(i*1.5,i*1.5,i*1.5) sw.Transparency = (i/scale) + 0 wait() end sw:Remove() end)) end
  454. function BlastWave(onb,scale,ymes,col) coroutine.resume(coroutine.create(function()
  455. local sw = pa(m,"Block",1*s,0,1*s,false,false,0.2,0,col) sw.Anchored = true sw.CFrame = onb *ca(rd(0),0,0) local swm = it("SpecialMesh",sw) swm.MeshType = "FileMesh"
  456. swm.MeshId = BlastMesh.MeshId
  457. for i=1,scale,scale/11 do
  458. swm.Scale = v3(i*1.25,i*ymes,i*1.25) sw.CFrame = sw.CFrame *ca(0,rd(720*(i/scale)),0) sw.Transparency = (i/scale) + 0
  459. wait()
  460. end
  461. sw:Remove()
  462. end))
  463. end
  464. function Explode(onb,scale,col) local Torm = m coroutine.resume(coroutine.create(function() local e1 = Instance.new("Part") e1.Anchored = true e1.formFactor = "Custom" e1.CanCollide = false e1.Size = Vector3.new(1,1,1) e1.BrickColor = BrickColor.new(col)
  465. e1.Transparency = 0.6 e1.TopSurface = 0 e1.BottomSurface = 0 e1.Parent = Torm e1.CFrame = onb local e1m = Instance.new("SpecialMesh")
  466. e1m.MeshType = "Sphere" e1m.Parent = e1 local r1 = Instance.new("Part") r1.Anchored = true r1.formFactor = "Custom" r1.CanCollide = false r1.Size = Vector3.new(1,1,1) r1.BrickColor = BrickColor.new(col) r1.Transparency = 0.6 r1.TopSurface = 0 r1.BottomSurface = 0 r1.Parent = Torm r1.CFrame = e1.CFrame *CFrame.Angles(math.rad(180),0,0) local r1m = Instance.new("SpecialMesh") r1m.MeshType = "FileMesh"
  467. r1m.Scale = Vector3.new(3,3,3) r1m.Parent = r1 r1m.MeshId = RingMesh.MeshId local r2 = Instance.new("Part") r2.Anchored = true r2.formFactor = "Custom" r2.CanCollide = false r2.Size = Vector3.new(1,1,1) r2.BrickColor = BrickColor.new(col) r2.Transparency = 0.6 r2.TopSurface = 0 r2.BottomSurface = 0 r2.Parent = Torm r2.CFrame = e1.CFrame *CFrame.Angles(0,math.rad(180),0) local r2m = Instance.new("SpecialMesh") r2m.MeshType = "FileMesh"
  468. r2m.Parent = r2 r2m.Scale = Vector3.new(3,3,3) r2m.MeshId = RingMesh.MeshId local bla = Instance.new("Part") bla.Anchored = true
  469. bla.formFactor = "Custom" bla.CanCollide = false bla.Size = Vector3.new(1,1,1) bla.BrickColor = BrickColor.new(col) bla.Transparency = 0.6 bla.TopSurface = 0 bla.BottomSurface = 0 bla.Parent = Torm bla.CFrame = onb local blam = Instance.new("SpecialMesh")
  470. blam.MeshType = "FileMesh" blam.Parent = bla blam.Scale = Vector3.new(5,5,5) blam.MeshId = BlastMesh.MeshId for i=1,30 do local pluscal = scale/38 e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  471. r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal) r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  472. blam.Scale = blam.Scale + Vector3.new(pluscal,pluscal/2,pluscal) bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0) r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0) r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0) wait() end for i=1,30 do local pluscal = scale/38 e1m.Scale = e1m.Scale + Vector3.new(pluscal,pluscal,pluscal) r1m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal) r2m.Scale = r1m.Scale + Vector3.new(pluscal,pluscal,pluscal)
  473. blam.Scale = blam.Scale + Vector3.new(pluscal/3,pluscal/3,pluscal/3) bla.CFrame = bla.CFrame * CFrame.Angles(0,math.rad(12),0) r1.CFrame = r1.CFrame * CFrame.Angles(math.rad(6),0,0) r2.CFrame = r2.CFrame * CFrame.Angles(0,math.rad(6),0) bla.Transparency = bla.Transparency + 0.1 e1.Transparency = e1.Transparency + 0.1 r1.Transparency = r1.Transparency + 0.1 r2.Transparency = r2.Transparency + 0.1 wait() end e1:Remove() r1:Remove() r2:Remove() end)) end
  474.  
  475. function Hurtsplosion(pos,dmg,rndmg,siz,forc)
  476. coroutine.resume(coroutine.create(function() local boomcol = {"Really red","Really black","Really red"}
  477. for i=1,3 do
  478. coroutine.resume(coroutine.create(function()
  479. local plos = pa(m,"Block",1*s*siz,1.5*s*siz,0.7*s*siz,false,false,0.3,0,boomcol) spm("Sphere",plos,1) plos.Anchored = true
  480. plos.CFrame = cf(pos + v3(0,0,0)) * ca(rd(ra(-360,360)),rd(ra(-360,360)),rd(ra(-360,360)))
  481. plos.Mesh.Scale = v3(0.1,0.1,0.1)
  482. for i=0.3,1,0.03 do local plc = plos.CFrame
  483. plos.Mesh.Scale = v3(i*6,i*6,i*6) plos.Transparency = i plos.CFrame = plc * ca(rd(3),rd(3),0)
  484. wait()
  485. end
  486. plos:Remove()
  487. end))
  488. end
  489. end))
  490. wait(0.1)
  491. DmgHumanoidsNear(pos,dmg,rndmg,5.5*s*siz,forc)
  492. end
  493.  
  494. function DmgHumanoidsNear(pos,dmg,rndmg,mag,forc)
  495. local function kidive(ob)
  496. for i,v in pairs(ob:children()) do
  497. if v:IsA("BasePart") and v.Parent.Parent:findFirstChild("Humanoid") == nil and v.Parent:findFirstChild("Humanoid") == nil and (v.Position - pos).magnitude < mag*1.3 and v.Anchored == false and v:GetMass() < 150 then
  498. v:BreakJoints() v.Velocity = cf(pos,v.Position).lookVector*forc
  499. end
  500. if v:IsA("Humanoid") and v ~= hu and v.Parent:findFirstChild("Torso") then
  501. if (pos - v.Parent.Torso.Position).magnitude < mag then local tdmg = dmg*ra(1,rndmg)
  502. if v.Parent:findFirstChild("Hh") == nil then local hh= Instance.new("NumberValue",v.Parent) hh.Name = "Hh"
  503. hh.Value = v.Health - tdmg else v.Parent.Hh.Value = v.Health - (tdmg*3.5) end
  504. v.Health = v.Parent.Hh.Value if v.Parent.Hh.Value < 1 then v.Parent:BreakJoints() end
  505. end
  506. end
  507. if v:IsA("Model") or v:IsA("Workspace") then kidive(v) end end end
  508. kidive(workspace)
  509. end
  510. function Fire(bullet,typez,siz,dmg,rndmg,forc)
  511. if typez == 1 then
  512. bullet.Anchored = true
  513. local bullethit = false
  514. local tyms = 0
  515. repeat
  516. tyms = tyms + 2
  517. local bhit,bpos = ray(bullet.Position,bullet.Position - (bullet.CFrame *cf(0,0,-1)).p)
  518. if bpos ~= nil and (bpos - bullet.Position).magnitude < 7 then bullethit = true else bullet.CFrame = bullet.CFrame *cf(0,0,-1*s) *ca(rd(-0.0025),rd(0),0) end
  519. if tyms%32 == 0 then wait() end
  520. until bullethit or bullet.Position.y < -300 or tyms > 800
  521. bullet.CFrame = bullet.CFrame *cf(0,0,8) bullet:Remove()
  522. if bullet.Position.y < -300 then
  523. else
  524. Hurtsplosion(bullet.Position,dmg,rndmg,siz,forc)
  525. end
  526. elseif typez == 2 then
  527. bullet.Anchored = true
  528. local bullethit = false
  529. local tyms = 0
  530. local ming = 0.001
  531. repeat
  532. if tyms > 70 and (ming == 0.001 or ming == -2.5) then ming = -2.5
  533. local bpos = (bullet.CFrame *cf(0,0,-300)).p if (bpos - v3(Palm.Position.x,bpos.y,Palm.Position.z)).magnitude < 25*s then ming = 0 end
  534. end
  535. tyms = tyms + 2
  536. local bhit,bpos = ray(bullet.Position,bullet.Position - (bullet.CFrame *cf(0,0,-1)).p)
  537. if bpos ~= nil and (bpos - bullet.Position).magnitude < 7 then bullethit = true else bullet.CFrame = bullet.CFrame *cf(0,0,-0.5) *ca(rd(ming),rd(0),0) end
  538. if tyms%16 == 0 then wait() end
  539. until bullethit or bullet.Position.y < -300 or tyms > 500
  540. bullet.CFrame = bullet.CFrame *cf(0,0,8) bullet:Remove()
  541. if bullet.Position.y < -300 then
  542. else
  543. Hurtsplosion(bullet.Position,dmg,rndmg,siz,forc)
  544. end
  545. elseif typez == 3 then
  546. end
  547. end
  548. function ShortifiedAnim(theanim)
  549. if theanim == "Beam" then
  550. local crom = pa(m,"Block",0,0,0,true,true,0.5,0,LaserCol3) local cromm = it("SpecialMesh",crom) cromm.MeshType = "FileMesh" cromm.MeshId = asset .. Decs.Crown
  551. cromm.Scale = v3(15*s,5*s,15*s) crom.Anchored = true --local cromw = weld(crom,Palm,crom,0,Palm.Size.y/3.6,-Palm.Size.z*1.8,rd(-90),0,0)
  552. dias = {} loldiv = 360/8 for x=0,360,loldiv do
  553. local dia = pa(m,"Block",0,0,0,false,false,0,0,LaserCol2) dia.Anchored = true local diam = it("SpecialMesh",dia) diam.MeshType = "FileMesh" diam.MeshId = DiamondMesh.MeshId
  554. diam.Scale = v3(3*s,9*s,3*s) table.insert(dias,dia)
  555. end Button = true coroutine.resume(coroutine.create(function() local tardz = 0 repeat wait() tardz = tardz+ 15
  556. crom.CFrame = Palm.CFrame *ca(rd(-90),0,0) *cf(0,5.5*s,2*s) *ca(0,rd(tardz),0)
  557. for rofl=1,#dias do dias[rofl].CFrame = crom.CFrame *ca(0,rd(rofl*loldiv),0) *cf(0,-19*s,0) *ca(rd(25),0,0) *cf(0,32*s,0) end
  558. until not Button for x2=0.5,1,0.05 do wait() crom.Transparency = x2 end end))
  559. coroutine.resume(coroutine.create(function() for xk=1,0.5,-0.02 do wait() for i=1,#dias do dias.Transparency =xk end end end))
  560. wait(1) local beamoffset = v3(0,0,0)
  561. local b1 = pa(m,"Ball",10*s,10*s,10*s,false,false,0.1,0,LaserCol) b1.Anchored = true
  562. local b2 = pa(m,"Block",10*s,1,10*s,false,false,0.1,0,LaserCol) b2.Anchored = true local b2m = it("CylinderMesh",b2)
  563. local b3 = pa(m,"Ball",10*s,10*s,10*s,false,false,0.1,0,LaserCol) b3.Anchored = true
  564. local bpos = nil local bhit = nil local ts = 0
  565. repeat beamoffset = v3(ra(-2*s,2*s),ra(-2*s,2*s),ra(-2*s,2*s)) ts = ts + 1
  566. bhit,bpos = ray(Palm.Position,Palm.Position - (Palm.CFrame *cf(0,0,1)).p)
  567. if bhit == nil or (Palm.Position - bpos).magnitude > 1500 then break end
  568. b1.CFrame = Palm.CFrame *cf(0,3*s,-11*s)
  569. b3.CFrame = cf(bpos) local lenz = (b1.Position - b3.Position).magnitude
  570. b2.CFrame = cf(b1.Position,b3.Position) *ca(rd(90),0,0) *cf(0,-lenz/2,0) b2m.Scale = v3(1,lenz,1)
  571. b1.CFrame = b1.CFrame + beamoffset b2.CFrame = b2.CFrame + beamoffset b3.CFrame = b3.CFrame + beamoffset
  572. if ts%10 == 0 then DmgHumanoidsNear(b3.Position,3,10,(14*s)+2,100) Explode(b3.CFrame*cf(0,b3.Size.y/3,0),25*s,LaserCol2) end
  573. wait() until not Button or ts > 600
  574. coroutine.resume(coroutine.create(function() for xk=0.1,1.1,0.08 do wait() b1.Transparency = xk b2.Transparency = xk b3.Transparency = xk end b1:Remove() b2:Remove() b3:Remove() end))
  575. coroutine.resume(coroutine.create(function() for xk=0.5,1.1,0.02 do wait() for i=1,#dias do dias.Transparency =xk end end end))
  576. wait(1) clearit(dias) crom:Remove()
  577. end
  578. end
  579. PalmLev = it("BodyPosition",Palm)
  580. PalmFace = it("BodyGyro",Palm) PalmFace.maxTorque = v3(0,0,0)
  581. coroutine.resume(coroutine.create(function()
  582. PalmLev.position = (t.CFrame *cf(handoffset)).p
  583. local yspi = 0
  584. while true do yspi = yspi + 8
  585. if Anim.a == "Gun" or Anim.a == "Ride" or Anim.a == "Pound" then
  586. Facing = "Mouse" bgx = -90 bgy = 90 bgz = 0
  587. elseif Anim.a == "Fu" or Anim.a == "Fist" or Anim.a == "GroundGrip" then
  588. Facing = "Mouse" bgx = -90 bgy = 0 bgz = 0
  589. elseif Anim.a == "Splat" or Anim.a == "Beam" then
  590. Facing = "Mouse" bgx = 0 bgy = 0 bgz = 0
  591. elseif Anim.a == "None" then
  592. Facing = "Owner" bgx = -90 bgy = 0 bgz = 0 Posing = "Follow"
  593. elseif Anim.a == "Shower" then
  594. Facing = "None" bgx = 0 bgy = 0 bgz = 0 Posing = "TopOwner"
  595. end
  596. if Posing == "Follow" then
  597. PalmLev.maxForce = v3(1/0,1/0,1/0) PalmLev.position = (t.CFrame *cf(handoffset) *cf(0,0,0)).p
  598. elseif Posing == "TopOwner" then
  599. PalmLev.maxForce = v3(1/0,1/0,1/0) PalmLev.position = (t.CFrame *cf(0,12*s,0)).p
  600. end
  601. if Facing == "Owner" then
  602. PalmFace.maxTorque = v3(1/0,1/0,1/0) PalmFace.cframe = cf(Palm.Position,he.Position) *ca(rd(bgx),rd(bgy),rd(bgz))
  603. elseif Facing == "Mouse" and mou ~= nil and Equip then
  604. if Anim.a == "Gun" or Anim.a == "Beam" or Anim.a == "Ride" or Anim.a == "GroundGrip" or Anim.a == "Fu" or Anim.a == "Pound" or Anim.a == "Splat" or Anim.a == "Fist" then
  605. if Anim.b == "None" or Anim.a == "Beam" or Anim.a == "Ride" then
  606. PalmFace.cframe = cf(Palm.Position,mou.Hit.p) *ca(rd(bgx),rd(bgy),rd(bgz)) wait(0.05)
  607. end end end
  608. wait(0.05)
  609. end
  610. end))
  611. function FireFinger(lasercol,ffingz,targ,typez,siz,dmg,rndmg,forc) coroutine.resume(coroutine.create(function()
  612. local laser = pa(m,"Block",fingwide*1.3,fingwide*1.3,fingwide*2.5,true,false,0,0,lasercol) spm("Sphere",laser,1+(siz/5.5)) laser.Name = "Projectile"
  613. local lw = weld(laser,ffingz,laser,0,ffingz.Size.y/0.8 +(siz/2.5),0,rd(90),0,0)
  614. for i=1,0.4,-0.05 do laser.Transparency = i wait() end
  615. BlastWave(ffingz.CFrame*cf(0,ffingz.Size.y*1.3,0)*ca(0,0,0),ffingz.Size.x*1.6,1.8,LaserCol2)
  616. lw:Remove() laser.CFrame = cf(laser.Position,targ)
  617. Fire(laser,typez,siz,dmg,rndmg,forc)
  618. end))
  619. end
  620. GrabWeld = it("Weld",m)
  621. Palm.Touched:connect(function(touch)
  622. if Anim.a == "Ride" and GrabWeld.Part1 == nil and touch.Parent:findFirstChild("Torso") and touch.Parent:findFirstChild("Humanoid") then
  623. local tor = touch.Parent.Torso touch.Parent.Humanoid.PlatformStand = true
  624. GrabWeld.Part0 = Palm GrabWeld.Part1 = tor GrabWeld.C0 = cf(-3*s,4.5*s,-Palm.Size.x/2) GrabWeld.C1 = ca(0,rd(90),rd(-90)) *ca(0,rd(0),0)
  625. end
  626. end)
  627. re(bp,"Hand")
  628. hb = it("HopperBin",bp) hb.Name = "Hand"
  629. hb.Selected:connect(function(mouse) mou = mouse Equip = true
  630. mouse.KeyDown:connect(function(k) k = k:lower()
  631. if Anim.a == "Ride" and k == "f" then FireFinger(LaserCol,pPinkie3,mouse.Hit.p,1,2.25,1,18,30) end
  632. if Anim.b ~= "None" or Anim.Welding ~= 0 then return end
  633. if Anim.a == "None" then
  634. if k == "f" then -- on anim on
  635. Anim.a = "Gun" HandSign("Gun",0.7)
  636. elseif k == "p" then
  637. Anim.a = "Fu" HandSign("f",1)
  638. elseif k == "g" then
  639. Anim.a = "Fist" HandSign("fist",1)
  640. elseif k == "c" then
  641. Anim.a = "Splat" HandSign("wide",1)
  642. elseif k == "r" then
  643. Anim.a = "Ride" HandSign("ride",1) Posing = "None"
  644. elseif k == "v" then
  645. Anim.a = "Shower" HandSign("grab2",1) PalmFace.cframe = cf(0,0,0) *ca(0,0,0)
  646. elseif k == "b" then
  647. Anim.a = "Pound" HandSign("fist",1)
  648. elseif k == "x" then
  649. Anim.a = "GroundGrip" HandSign("grab2",1)
  650. elseif k == "z" then
  651. Anim.a = "Beam" HandSign("wide2",1)
  652. end
  653. else
  654. if k == "f" and Anim.a == "Gun" then -- on anim off
  655. Anim.a = "None" HandSign("five",0.8)
  656. elseif k == "p" and Anim.a == "Fu" then
  657. Anim.a = "None" HandSign("five",0.8)
  658. elseif k == "g" and Anim.a == "Fist" then
  659. Anim.a = "None" HandSign("five",0.8)
  660. elseif k == "c" and Anim.a == "Splat" then
  661. Anim.a = "None" HandSign("five",0.8)
  662. elseif k == "r" and Anim.a == "Ride" then
  663. Anim.a = "None" HandSign("five",0.8) GrabWeld.Part0 = nil Anim.b = "None" Posing = "Follow" Facing = "Owner"
  664. if GrabWeld.Part1 ~= nil and GrabWeld.Part1.Parent:findFirstChild("Humanoid") ~= nil then GrabWeld.Part1.Parent.Humanoid.PlatformStand = false end GrabWeld.Part1 = nil
  665. elseif k == "v" and Anim.a == "Shower" then
  666. Anim.a = "None" HandSign("five",0.8) Posing = "Follow" Facing = "Owner"
  667. elseif k == "b" and Anim.a == "Pound" then
  668. Anim.a = "None" HandSign("five",0.8)
  669. elseif k == "x" and Anim.a == "GroundGrip" then
  670. Anim.a = "None" HandSign("five",0.8)
  671. elseif k == "z" and Anim.a == "Beam" then
  672. Anim.a = "None" HandSign("five",0.8)
  673. end
  674. end
  675. end)
  676. mouse.Button1Down:connect(function()
  677. if Anim.a == "None" or Anim.b ~= "None" then return end
  678. if Anim.a == "Gun" then
  679. Anim.b = "Gun" FireFinger(LaserCol,pPoint3,mouse.Hit.p,1,2.25,1,10,60) FireFinger(LaserCol,pMid3,mouse.Hit.p,1,2.25) wait(1) Anim.b = "None"
  680. elseif Anim.a == "Fu" then
  681. Anim.b = "Fu" FireFinger(LaserCol,pMid3,mouse.Hit.p,1,3.65,2,14,95) wait(0.25) Anim.b = "None"
  682. elseif Anim.a == "Fist" then
  683. local bhit,bpos = ray(Palm.Position,Palm.Position - (Palm.CFrame *cf(0,-1,0)).p)
  684. if bhit == nil or (Palm.Position - bpos).magnitude > 500 then return end
  685. Anim.b = "Fist" Posing = "None" PalmFace.cframe = cf(Palm.Position,bpos) *ca(rd(-90),0,0)
  686. PalmLev.position = (Palm.CFrame *cf(0,-15*s,0)).p
  687. wait(0.45)
  688. PalmLev.position = bpos + ((Palm.CFrame *cf(0,1*s,0)).p - Palm.Position)
  689. local tz = 0 repeat wait() BlastWave(Palm.CFrame*ca(rd(180),0,0),8*s,3.5,HCol) tz = tz + wait() until (PalmLev.position - Palm.Position).magnitude < 8*s or tz > 1
  690. Explode(Palm.CFrame *cf(0,6*s,0) *ca(rd(180),0,0),15*s,ts(bhit.BrickColor))
  691. DmgHumanoidsNear((Palm.CFrame *cf(0,8,0)).p,3,10,(12*s)+2,105)
  692. if not bhit.Anchored then PalmLev.position = (Palm.CFrame *cf(0,12*s,0)).p wait(0.5) end
  693. wait(1) Posing = "Follow" Anim.b = "None"
  694. elseif Anim.a == "Splat" then
  695. if mouse.Target == nil and (Palm.Position - mouse.Hit.p).magnitude > 500 then return end local bpos = mouse.Hit.p
  696. Anim.b = "Splat" Posing = "None"
  697. local ya,yb,yc = PalmFace.cframe:toEulerAnglesXYZ() PalmFace.cframe = cf(0,0,0) *ca(0,yb,0) *ca(rd(-90),0,0) PalmLev.position = bpos + v3(0,10*s,0)
  698. local tz = 0 repeat wait() tz = tz + wait() until (PalmLev.position - Palm.Position).magnitude < 5*s or tz > 1.3
  699. for i=-90,0,5 do
  700. PalmLev.position = PalmLev.position + v3(0,2*s,0) PalmFace.cframe = cf(0,0,0) *ca(0,yb,0) *ca(rd(i),0,0)
  701. wait()
  702. end wait(0.2)
  703. for i=0,-100,-10 do
  704. local lewd = i
  705. if lewd < -50 then lewd = -95 end
  706. PalmLev.position = PalmLev.position - v3(0,4.7*s,0) PalmFace.cframe = cf(0,0,0) *ca(0,yb,0) *ca(rd(lewd),0,0)
  707. wait()
  708. end wait(0.2)
  709. local cr = pa(m,"Block",16*s,0,16*s,false,false,1,0,"") cr.Anchored = true cr.CFrame = cf(bpos) *ca(0,rd(ra(-360,360)),0)
  710. local de = it("Decal",cr) de.Face = "Top" de.Texture = asset .. Decs.Crack Serv.d:AddItem(cr,16)
  711. DmgHumanoidsNear((Palm.CFrame *cf(0,0,-1)).p,3,20,(15*s)+2,110)
  712. ShockWave(Palm.CFrame *ca(rd(90),0,0),25*s,LaserCol)
  713. wait(1) Posing = "Follow" Anim.b = "None"
  714. elseif Anim.a == "Ride" and Button == false then
  715. Posing = "None" Anim.b = "Ride"
  716. Button = true
  717. repeat PalmLev.position = (Palm.CFrame *cf(0,10,0)).p wait() until Button == false
  718. Anim.b = "None"
  719. elseif Anim.a == "Shower" and Button == false then
  720. Anim.b = "Shower" Button = true
  721. repeat
  722. local targz = Palm.Position + v3(0,20*s,0)
  723. if ra(1,12) == 1 then FireFinger(LaserCol,pPinkie3,targz,2,4,1,18,55) end
  724. if ra(1,13) == 1 then FireFinger(LaserCol,pRing3,targz,2,4,1,18,60) end
  725. if ra(1,12) == 1 then FireFinger(LaserCol,pMid3,targz,2,4,1,18,65) end
  726. if ra(1,13) == 1 then FireFinger(LaserCol,pPoint3,targz,2,4,1,18,70) end
  727. if ra(1,12) == 1 then FireFinger(LaserCol,pThumb3,targz,2,4,1,18,80) end
  728. PalmFace.cframe = PalmFace.cframe *ca(0,rd(10),0)
  729. wait()
  730. until Button == false
  731. Anim.b = "None"
  732. elseif Anim.a == "Pound" and Anim.b == "None" then Posing = "None" Anim.b = "Pound"
  733. local bhit,bpos = ray(Palm.Position,Palm.Position - (Palm.CFrame *cf(0,-1,0)).p)
  734. if bhit == nil or (Palm.Position - bpos).magnitude > 500 then return end
  735. PalmLev.position = bpos + v3(0,15*s,0)
  736. local ya,yb,yc = PalmFace.cframe:toEulerAnglesXYZ() PalmFace.cframe = ca(ya,yb,yc)
  737. local tz = 0 repeat wait() tz = tz + wait() until (PalmLev.position - Palm.Position).magnitude < 5*s or tz > 1.3 wait(0.1)
  738. for i=-90,-10,10 do
  739. PalmFace.cframe = ca(ya,yb,yc) *ca(0,0,rd(i+90)) PalmLev.position = PalmLev.position + v3(0,2.5*s,0)
  740. wait() end wait(0.25) local realcf = cf(v3(he.Position.x,0,he.Position.z),v3(Palm.Position.x,0,Palm.Position.z))
  741. for i=-10,-90,-10 do
  742. PalmFace.cframe = ca(ya,yb,yc) *ca(0,0,rd(i+90)) PalmLev.position = PalmLev.position - v3(0,4*s,0)
  743. wait() end PalmFace.cframe = realcf *ca(rd(-90),rd(90),0) wait(0.25)
  744. local cr = pa(m,"Block",22*s,0,22*s,false,false,1,0,"") cr.Anchored = true cr.CFrame = cf(bpos) *ca(0,rd(ra(-360,360)),0)
  745. local de = it("Decal",cr) de.Face = "Top" de.Texture = asset .. Decs.Crack Serv.d:AddItem(cr,16)
  746. Dustplosion(Palm.CFrame *cf(2*s,0,0) *ca(rd(90),0,rd(90)),30*s,{"Really red","Really black","Really red"},3)
  747. ShockWave(Palm.CFrame *cf(2*s,0,0) *ca(rd(90),0,rd(90)),20*s,ts(bhit.BrickColor))
  748. DmgHumanoidsNear((Palm.CFrame *cf(0,1,0)).p,1,20,(15*s)+2,90) wait(0.2)
  749. local palmcf = cf(bpos) local earthsplos = ra(5,8) palmcf = Palm.CFrame *ca(0,rd(90),0) *ca(rd(-90),0,rd(0))
  750. for i=1,earthsplos do Earthsplosion(palmcf *cf(0,-2*s,((i*7)+7)*s),10,1,20,75) wait(0.1) end
  751. Earthsplosion(palmcf *cf(0,-2*s,(((earthsplos+1)*7)+7)*s),16,2,25,75)
  752. wait(1) Posing = "Follow" wait(0.25) Anim.b = "None"
  753. elseif Anim.a == "GroundGrip" then Posing = "None" Anim.b = "GroundGrip"
  754. local bhit,bpos = ray(Palm.Position,Palm.Position - (Palm.CFrame *cf(0,-1,0)).p)
  755. if bhit == nil or (Palm.Position - bpos).magnitude > 500 then return end
  756. PalmLev.position = bpos + v3(0,27*s,0) ColFings(false)
  757. local tz = 0 repeat wait() tz = tz + wait() until (PalmLev.position - Palm.Position).magnitude < 8*s or tz > 1.3 wait(0.1)
  758. local thepos = (Palm.CFrame *cf(0,-0.1*s,0)).p - Palm.Position
  759. PalmFace.cframe = cf(Palm.Position,bpos + thepos) *ca(rd(-90),0,0)
  760. for i=27,1,-3 do PalmLev.position = bpos + v3(0,i*s,0) wait(0.07) end HandSign("grab3",0.4) wait(0.55)
  761. local ro = pa(m,"Ball",0,0,0,false,false,0,0,"Earth green") ro.Name = "Rock" local row = it("SpecialMesh",ro) row.MeshType = "FileMesh" row.MeshId = asset .. Decs.Rock
  762. local rowe = weld(ro,Palm,ro,0,Palm.Size.y,-Palm.Size.z*1.2,0,0,0) row.Scale = v3(9*s,10*s,9*s)
  763. coroutine.resume(coroutine.create(function() for xz=1,70,7 do PalmLev.position = bpos + v3(0,xz*s,0) wait(0.06) end end))
  764. wait(0.25) Dustplosion(cf(bpos),30*s,{"Really red","Really black","Really red"},3) local lolra = ra(-360,360)
  765. Earthsplosion(cf(bpos),25,1,20,125,"sand") for yyy=0,360,60 do coroutine.resume(coroutine.create(function()
  766. for zzz=1,4 do
  767. Earthsplosion(cf(bpos) *ca(0,rd(yyy+lolra),0) *cf(0,0,zzz*15*s),10,1,20,75) wait(0.14)
  768. end wait(0.25) Earthsplosion(cf(bpos) *ca(0,rd(yyy+lolra),0) *cf(0,0,5*18*s),25,1,20,120) end)) end
  769. wait(0.3) HandSign("grab2",0.5) wait(0.75) Serv.d:AddItem(ro,20) rowe:Remove() ro.CanCollide = true local rocf = ro.CFrame ro.Size=v3(14*s,14*s,14*s) ro.CFrame = rocf wait(0.75) ColFings(true) Posing = "Follow" Anim.b = "None"
  770. elseif Anim.a == "Beam" and not Button and Anim.b == "None" then Anim.b = "Beam"
  771. ShortifiedAnim("Beam") wait(0.5) Anim.b = "None"
  772. end
  773. end)
  774. mouse.Button1Up:connect(function()
  775. Button = false
  776. end)
  777. mouse.Move:connect(function()
  778. end)
  779.  
  780. end)
  781. hb.Deselected:connect(function(mouse)
  782. Equip = false
  783. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement