TheYoutuber_Pro

rther

Jan 15th, 2022 (edited)
978
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end local Player,game,owner = owner,game local RealPlayer = Player do     local rp = RealPlayer    script.Parent = rp.Character      local Event = Instance.new("RemoteEvent")  Event.Name = "UserInput_Event"    local function fakeEvent()        local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}        t.connect = t.Connect       return t    end   local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}   local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}   local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)       CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil   end}    CAS.UnbindAction = CAS.BindAction    local function te(self,ev,...)      local t = m[ev]       if t and t._fakeEvent then           for _,f in pairs(t.Functions) do               f(...)           end       end    end    m.TrigEvent = te    UIS.TrigEvent = te    Event.OnServerEvent:Connect(function(plr,io)        if plr~=rp then return end        m.Target = io.Target        m.Hit = io.Hit        if not io.isMouse then            local b = io.UserInputState == Enum.UserInputState.Begin            if io.UserInputType == Enum.UserInputType.MouseButton1 then                return m:TrigEvent(b and "Button1Down" or "Button1Up")            end            for _,t in pairs(CAS.Actions) do                for _,k in pairs(t.Keys) do                    if k==io.KeyCode then                       t.Function(t.Name,io.UserInputState,io)                   end                end            end           m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)        end    end)    Event.Parent = NLS([==[    local Player = game:GetService("Players").LocalPlayer    local Event = script:WaitForChild("UserInput_Event")     local Mouse = Player:GetMouse()    local UIS = game:GetService("UserInputService")    local input = function(io,a)        if a then return end Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})    end    UIS.InputBegan:Connect(input)    UIS.InputEnded:Connect(input)    local h,t    while wait(1/30) do        if h~=Mouse.Hit or t~=Mouse.Target then            h,t=Mouse.Hit,Mouse.Target           Event:FireServer({isMouse=true,Target=t,Hit=h})        end    end]==],Player.Character)    local _rg = game    local fsmt = {       __index = function(self,k)            local s = rawget(self,"_RealService")            if s then return s[k] end        end,        __newindex = function(self,k,v)            local s = rawget(self,"_RealService")            if s then s[k]=v end        end,        __call = function(self,...)            local s = rawget(self,"_RealService")            if s then return s(...) end        end    }    local function FakeService(t,RealService)        t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService        return setmetatable(t,fsmt)    end    local g = {        GetService = function(self,s)            return self[s]        end,        Players = FakeService({            LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)        },"Players"),        UserInputService = FakeService(UIS,"UserInputService"),        ContextActionService = FakeService(CAS,"ContextActionService"),    }    rawset(g.Players,"localPlayer",g.Players.LocalPlayer)    g.service = g.GetService       g.RunService = FakeService({        RenderStepped = _rg:GetService("RunService").Heartbeat,        BindToRenderStep = function(self,name,_,fun)            self._btrs[name] = self.Heartbeat:Connect(fun)        end,        UnbindFromRenderStep = function(self,name)            self._btrs[name]:Disconnect()        end,    },"RunService")     setmetatable(g,{        __index=function(self,s)            return _rg:GetService(s) or typeof(_rg[s])=="function"            and function(_,...)return _rg[s](_rg,...)end or _rg[s]        end,        __newindex = fsmt.__newindex,        __call = fsmt.__call    })    game,owner = g,g.Players.LocalPlayer end
  2. warn([[
  3. T-Pose GER script by MechaXYZ
  4. --CONTROLS--
  5. E - Barrage (does 2.5 dmg each hit)
  6. R - Heavy Punch (does 25 dmg)
  7. T - Scorpion Shot (does 20 dmg)
  8. Y - Heal (heals 30 hp)
  9. J - super bad beatdown
  10. ]])
  11. owner.Character.Humanoid.MaxHealth = 250
  12. owner.Character.Humanoid.Health = 250
  13. local RA = owner.Character["Right Arm"]
  14. local LA = owner.Character["Left Arm"]
  15. local RL = owner.Character["Right Leg"]
  16. local LL = owner.Character["Left Leg"]
  17. local Head = owner.Character.Head
  18. local Torso = owner.Character.Torso
  19. local Humanoid = owner.Character.Humanoid
  20. local Character = owner.Character
  21. local Player = owner
  22. local HRP = owner.Character.HumanoidRootPart
  23. local RS = owner.Character.Torso["Right Shoulder"]
  24. local LS = owner.Character.Torso["Left Shoulder"]
  25. local RH = owner.Character.Torso['Right Hip']
  26. local LH = owner.Character.Torso['Left Hip']
  27. local RootJoint = owner.Character.HumanoidRootPart.RootJoint
  28. local Neck = owner.Character.Torso.Neck
  29. local m = owner:GetMouse()
  30. local tw = game:GetService("TweenService")
  31. local summoned = false
  32. local summondb = false
  33. local edb = false
  34. local barraging = false
  35. local rdb = false
  36. local brgdb = false
  37. local summon = Instance.new("Sound" , Head)
  38. summon.SoundId = 'rbxassetid://5371606324'
  39. summon.Volume = 1.5
  40. local brg = Instance.new("Sound" , Head)
  41. brg.SoundId = 'rbxassetid://4897569543'
  42. brg.Volume = 3.5
  43. brg.Looped = true
  44. local hevhit = Instance.new("Sound" , Head)
  45. hevhit.SoundId = 'rbxassetid://6527704537'
  46. hevhit.Volume = 1.5
  47. local bhit = Instance.new("Sound" , Head)
  48. bhit.SoundId = 'rbxassetid://541909913'
  49. bhit.Volume = 1.5
  50. local hevp = Instance.new("Sound" , Head)
  51. hevp.SoundId = 'rbxassetid://6164853733'
  52. hevp.Volume = 1.5
  53. local q1 = Instance.new("Sound" , Head)
  54. q1.SoundId = 'rbxassetid://6174594065'
  55. q1.Volume = 2.75
  56. local q2 = Instance.new("Sound" , Head)
  57. q2.SoundId = 'rbxassetid://6509584039'
  58. q2.Volume = 2.75
  59. q2.TimePosition = .5
  60. local q3 = Instance.new("Sound" , Head)
  61. q3.SoundId = 'rbxassetid://6174591978'
  62. q3.Volume = 2.75
  63. local shoots = Instance.new("Sound" , Head)
  64. shoots.SoundId = 'rbxassetid://3895246074'
  65. shoots.Volume = 1.25
  66. local heal = Instance.new("Sound" , Head)
  67. heal.SoundId = 'rbxassetid://3057029635'
  68. heal.Volume = 2.75
  69. local ger = Instance.new("SpawnLocation" , owner.Character)
  70. ger.CanCollide = false
  71. ger.Enabled = false
  72. ger.CanTouch = false
  73. ger.Massless = true
  74. ger.CanQuery = false
  75. ger.CFrame = owner.Character.HumanoidRootPart.CFrame * CFrame.new(2.5,1.5,2)
  76. ger.Name = "GER"
  77. ger.Transparency = 1
  78. ger.Size = Vector3.new(3,6,2)
  79. local germesh = Instance.new("SpecialMesh" , ger)
  80. germesh.MeshId = 'rbxassetid://6528388141'
  81. germesh.TextureId = 'rbxassetid://6528388259'
  82. germesh.Scale = Vector3.new(.999999999,.999999999,.999999999)
  83. local spos = Instance.new("Weld" , HRP)
  84. spos.Part0 = ger
  85. spos.Part1 = HRP
  86. spos.C0 = CFrame.new()
  87. local startheight = 1.3
  88. coroutine.wrap(function()
  89. while task.wait() do
  90. startheight = 1.3 + (math.sin(tick())/5)
  91. end
  92. end)()
  93. local insummon = false
  94. local function ragdoll(parent, humer)
  95. for ia, va in pairs(parent:GetDescendants()) do
  96. if va:IsA("Motor6D") or va:IsA("Motor") then
  97. local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment")
  98.             a0.CFrame = va.C0
  99.             a1.CFrame = va.C1
  100.             a0.Parent = va.Part0
  101.             a1.Parent = va.Part1
  102.             local b = Instance.new("BallSocketConstraint")
  103.             b.Attachment0 = a0
  104.             b.Attachment1 = a1
  105.             b.Parent = va.Part0
  106.             va:Destroy()
  107.             humer.PlatformStand = true
  108. end
  109. end
  110. end
  111. local function chatfunc(text)
  112. local chat = coroutine.wrap(function()
  113. if owner.Character.Head:FindFirstChild("TalkingBillBoard") ~= nil then
  114. owner.Character.Head:FindFirstChild("TalkingBillBoard"):Destroy()
  115. end
  116. local naeeym2 = Instance.new("BillboardGui" , owner.Character.Head)
  117. naeeym2.Size = UDim2.new(0, 500, 0, 500)
  118. naeeym2.StudsOffset = Vector3.new(0,3,0)
  119. naeeym2.Name = "TalkingBillBoard"
  120. local tecks2 = Instance.new("TextBox",naeeym2)
  121. tecks2.BackgroundTransparency = 1
  122. tecks2.BorderSizePixel = 0
  123. tecks2.Text = ""
  124. tecks2.Font = "Bodoni"
  125. tecks2.TextSize = 50
  126. tecks2.TextStrokeTransparency = 0
  127. tecks2.TextColor3 = Color3.new(1,1,1)
  128. tecks2.TextStrokeColor3 = Color3.new()
  129. tecks2.Size = UDim2.new(1,0,.5,0)
  130. for c = 1,string.len(text),1 do
  131. tecks2.Text = string.sub(text,1,c)
  132. task.wait(.05)
  133. end
  134. task.wait(2)
  135. for i = 1, 50 do
  136. task.wait()
  137. tecks2.TextTransparency += .04
  138. tecks2.TextStrokeTransparency += .04
  139. end
  140. naeeym2:Destroy()
  141. end)
  142. chat()
  143. end
  144. local function DamageIndicator(amount, parent, color, scolor)
  145. local naeeym2 = Instance.new("BillboardGui" , parent)
  146. naeeym2.Size = UDim2.new(0, 500, 0, 500)
  147. naeeym2.StudsOffset = Vector3.new(0,0,0)
  148. naeeym2.Name = "DamageIndicator"
  149. local tecks2 = Instance.new("TextBox",naeeym2)
  150. tecks2.BackgroundTransparency = 1
  151. tecks2.BorderSizePixel = 0
  152. tecks2.Text = tostring(amount)
  153. tecks2.Font = "Arcade"
  154. tecks2.TextSize = 35
  155. tecks2.TextStrokeTransparency = 0
  156. tecks2.TextColor3 = color
  157. tecks2.TextStrokeColor3 = scolor
  158. tecks2.Size = UDim2.new(1,0,.5,0)
  159. tw:Create(naeeym2, TweenInfo.new(1), {StudsOffset = Vector3.new(0,3,0)}):Play()
  160. tw:Create(tecks2, TweenInfo.new(1), {TextTransparency = 1, TextStrokeTransparency = 1}):Play()
  161. game:GetService("Debris"):AddItem(naeeym2, 1)
  162. end
  163.  
  164. m.KeyDown:Connect(function(k)
  165. if k == 'q' and summoned == false then
  166. summoned = true
  167. summon:Play()
  168. chatfunc("Star Platinum!")
  169. insummon = true
  170. tw:Create(spos, TweenInfo.new(.3), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  171. tw:Create(ger, TweenInfo.new(.3), {Transparency = 0}):Play()
  172. task.wait(.3)
  173. insummon = false
  174. elseif k == 'q' and summoned == true then
  175. summoned = false
  176. insummon = true
  177. tw:Create(spos, TweenInfo.new(.3), {C1 = CFrame.new(0,0,0)}):Play()
  178. tw:Create(ger, TweenInfo.new(.3), {Transparency = 1}):Play()
  179. end
  180. end)
  181. local bding = false
  182. local heavying = false
  183. local healing = false
  184. m.KeyDown:Connect(function(k)
  185. if k == 'y' and summoned == true and Humanoid.Health ~= Humanoid.MaxHealth and heavying == false and barraging == false and bding == false then
  186. healing = true
  187. tw:Create(spos, TweenInfo.new(.5), {C1 = CFrame.new(0,0,-2.5) * CFrame.Angles(0,math.rad(180),0)}):Play()
  188. task.wait(.5)
  189. heal:Play()
  190. coroutine.wrap(function()
  191. for i = 1, 10 do
  192. task.wait(heal.TimeLength/10)
  193. Humanoid.Health += 3
  194. DamageIndicator(3, owner.Character.Head, Color3.new(0,1,0), Color3.new(0,.75,0))
  195. end
  196. end)()
  197. heal.Ended:Wait()
  198. tw:Create(spos, TweenInfo.new(.5), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  199. task.wait(.495)
  200. healing = false
  201. end
  202. end)
  203. coroutine.wrap(function()
  204. while task.wait() do
  205. pcall(function()
  206. local speed = HRP.Velocity.X or HRP.Velocity.Z
  207. if speed ~= 0 and barraging == false and heavying == false and bding == false and insummon == false and healing == false then
  208. tw:Create(spos, TweenInfo.new(.15), {C1 = CFrame.new(2.5,startheight,2.5) * CFrame.Angles(math.rad(-15),0,0)}):Play()
  209. brg:Stop()
  210. elseif speed <= 0 and barraging == false and heavying == false and bding == false and insummon == false and healing == false then
  211. tw:Create(spos, TweenInfo.new(.15), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  212. brg:Stop()
  213. end
  214. end)
  215. end
  216. end)()
  217. local deg = math.rad
  218. local rand = math.random
  219. local rhevdb = false
  220. local function barragehitbox()
  221. coroutine.wrap(function()
  222. while task.wait() do
  223. pcall(function()
  224. local params = OverlapParams.new()
  225. params.FilterDescendantsInstances = {owner.Character}
  226. params.FilterType = Enum.RaycastFilterType.Blacklist
  227. for i, hit in pairs(workspace:GetPartBoundsInBox(ger.CFrame, Vector3.new(10,8,5.5), params)) do
  228. if hit:FindFirstAncestorOfClass("Model") and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid") and brgdb == false and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health ~= 0 then
  229. brgdb = true
  230. bhit:Play()
  231. hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health -= 2.5
  232. DamageIndicator(2.5, hit, BrickColor.new("Bright orange").Color, Color3.new())
  233. local humer = hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid")
  234. humer.WalkSpeed = 2.5
  235. coroutine.wrap(function()
  236. task.wait(.05)
  237. brgdb = false
  238. humer.WalkSpeed = 16
  239. end)()
  240. break
  241. end
  242. end
  243. end)
  244. if barraging == false then break end
  245. end
  246. end)()
  247. end
  248. local function hevbox()
  249. coroutine.wrap(function()
  250. local params = OverlapParams.new()
  251. params.FilterDescendantsInstances = {owner.Character}
  252. params.FilterType = Enum.RaycastFilterType.Blacklist
  253. for i, hit in pairs(workspace:GetPartBoundsInBox(ger.CFrame, Vector3.new(8,5,8), params)) do
  254. if hit:FindFirstAncestorOfClass("Model") and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid") and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health ~= 0 then
  255. bhit:Play()
  256. hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health -= 25
  257. DamageIndicator(25, hit, Color3.new(1,0,0), Color3.new(.5,0,0))
  258. local humer = hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid")
  259. humer.Sit = true
  260. local e = Instance.new("BodyVelocity" , hit)
  261. e.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  262. e.Velocity = Vector3.new(0,50,0) + (HRP.CFrame.lookVector * 25)
  263. if hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health <= 22.5 then
  264. hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  265. ragdoll(hit:FindFirstAncestorOfClass("Model"),hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid"))
  266. end
  267. hevhit:Play()
  268. game:GetService("Debris"):AddItem(e, .05)
  269. coroutine.wrap(function()
  270. task.wait(2)
  271. humer.Sit = false
  272. end)()
  273. break
  274. end
  275. end
  276. end)()
  277. end
  278. m.KeyUp:Connect(function(k)
  279. if k == 'e' and bding == false and healing == false and heavying == false then
  280. barraging = false
  281. tw:Create(spos, TweenInfo.new(.3), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  282. brg:Stop()
  283. end
  284. end)
  285. local bdb = false
  286. local bdmuda = Instance.new("Sound" , owner.Character.Head)
  287. bdmuda.SoundId = 'rbxassetid://5752946521'
  288. bdmuda.TimePosition = 6
  289. bdmuda.Volume = 3.25
  290. local function bd()
  291. pcall(function()
  292. bdmuda.TimePosition = 6
  293. hevp:Play()
  294. local params = OverlapParams.new()
  295. params.FilterDescendantsInstances = {owner.Character}
  296. params.FilterType = Enum.RaycastFilterType.Blacklist
  297. for i, hit in pairs(workspace:GetPartBoundsInBox(ger.CFrame, Vector3.new(8,5,8), params)) do
  298. if hit:FindFirstAncestorOfClass("Model") and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid") and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health ~= 0 then
  299. hevp:Stop()
  300. bdmuda:Play()
  301. owner.Character.Humanoid.MaxHealth = 0/0
  302. owner.Character.Humanoid.Health = 0/0
  303. HRP.CFrame += Vector3.new(0,25,0)
  304. spos.C1 = CFrame.new(0,.25,-1.5)
  305. bding = true
  306. local gn = true
  307. local humer = hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid")
  308. local tors = hit:FindFirstAncestorOfClass("Model"):FindFirstChild("Torso") or hit:FindFirstAncestorOfClass("Model"):FindFirstChild("HumanoidRootPart")
  309. coroutine.wrap(function()
  310. while task.wait() do
  311. local eff = ger:Clone()
  312. eff:BreakJoints()
  313. eff.Anchored = true
  314. eff.Transparency = .75
  315. eff.Parent = script
  316. game:GetService("Debris"):AddItem(eff, .15)
  317. if gn == false then break end
  318. end
  319. end)()
  320. humer.Health -= 10
  321. DamageIndicator(10, hit, BrickColor.new("Bright orange").Color, Color3.fromRGB(218/10, 133/10, 65/10))
  322. tors.CFrame = HRP.CFrame * CFrame.new(0,2,-8) * CFrame.Angles(0,math.rad(180),0)
  323. for ia, va in pairs(hit:FindFirstAncestorOfClass("Model"):GetDescendants()) do
  324. if va:IsA("BasePart") then
  325. va.Anchored = true
  326. end
  327. end
  328. humer.BreakJointsOnDeath = false
  329. local effect = Instance.new("SpawnLocation" ,script)
  330. effect.CanCollide = false
  331. effect.Anchored = true
  332. local oldcf = (HRP.CFrame.p + tors.CFrame.p)/2
  333. effect.CFrame = CFrame.new(oldcf)
  334. local msh = Instance.new("SpecialMesh" , effect)
  335. msh.MeshId = 'rbxassetid://0'
  336. msh.TextureId = 'rbxassetid://0'
  337. msh.Scale = Vector3.new(-50,-50,-50)
  338. coroutine.wrap(function()
  339. while effect do
  340. task.wait()
  341. pcall(function()
  342. effect.CFrame *= CFrame.Angles(0,math.rad(15),0)
  343. end)
  344. end
  345. end)()
  346. tw:Create(spos, TweenInfo.new(2), {C1 = CFrame.new(0,.75,-5.5) * CFrame.Angles(deg(15),0,0)}):Play()
  347. coroutine.wrap(function()
  348. task.wait()
  349. for ia, va in pairs(owner.Character:GetDescendants()) do
  350. if va:IsA("BasePart") and va ~= ger then
  351. va.Anchored = true
  352. end
  353. end
  354. end)()
  355. task.wait(2)
  356. local a = true
  357. gn = false
  358. coroutine.wrap(function()
  359. while task.wait() do
  360. if a == true then
  361. humer.Health -= (.25)
  362. DamageIndicator(.25, hit, Color3.new(1,0,0), Color3.new(.5,0,0))
  363. tw:Create(spos, TweenInfo.new(.05), {C1 = CFrame.new(0,.75,-5.5) * CFrame.Angles(deg(15),deg(-35),deg(15))}):Play()
  364. task.wait(.06)
  365. humer.Health -= (.25)
  366. tw:Create(spos, TweenInfo.new(.05), {C1 = CFrame.new(0,.75,-5.5) * CFrame.Angles(deg(15),deg(35),deg(-15))}):Play()
  367. task.wait(.06)
  368. humer.Health -= (.25)
  369. end
  370. end
  371. end)()
  372. task.wait(2)
  373. a = false
  374. tw:Create(spos, TweenInfo.new(.05), {C1 = CFrame.new(0,.75,-5.5) * CFrame.Angles(deg(15),0,0)}):Play()
  375. coroutine.wrap(function()
  376. task.wait(1)
  377. chatfunc("You fool...")
  378. end)()
  379. task.wait(1)
  380. chatfunc("You're dead.")
  381. task.wait(1)
  382. a = true
  383. task.wait(10)
  384. a = false
  385. tw:Create(spos, TweenInfo.new(2), {C1 = CFrame.new(0,.25,-5) * CFrame.Angles(deg(15),math.rad(180),0)}):Play()
  386. task.wait(2.5)
  387. coroutine.wrap(function()
  388. for i = 1, 11 do
  389. task.wait()
  390. spos.C1 = spos.C1:Lerp(CFrame.new(0,.25,-5) * CFrame.Angles(deg(15),0,0), .1)
  391. end
  392. end)()
  393. task.wait(.100)
  394. for ia, va in pairs(owner.Character:GetDescendants()) do
  395. if va:IsA("BasePart") and va ~= ger then
  396. va.Anchored = false
  397. end
  398. end
  399. effect:Destroy()
  400. if hit and hit:FindFirstAncestorOfClass("Model") and humer and tors then
  401. for ia, va in pairs(hit:FindFirstAncestorOfClass("Model"):GetDescendants()) do
  402. if va:IsA("BasePart") then
  403. va.Anchored = false
  404. end
  405. end
  406. local e = Instance.new("BodyVelocity" , tors)
  407. e.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  408. e.Velocity = Vector3.new(0,75,0) + (HRP.CFrame.lookVector * 100)
  409. game:GetService("Debris"):AddItem(e, .05)
  410. ragdoll(hit:FindFirstAncestorOfClass("Model"), humer)
  411. DamageIndicator(humer.Health, hit, Color3.new(1,0,0), Color3.new(.5,0,0))
  412. humer.Health = 0
  413. end
  414. tw:Create(spos, TweenInfo.new(.3), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  415. bding = false
  416. owner.Character.Humanoid.MaxHealth = 250
  417. owner.Character.Humanoid.Health = 250
  418. bdmuda.Ended:Wait()
  419. chatfunc("Here is your pentition.")
  420. break
  421. end
  422. end
  423. end)
  424. end
  425. function showbeam(origin, direction)
  426.     local midpoint = origin + direction/2
  427.     local part = Instance.new("SpawnLocation")
  428.     part.Parent = script
  429.     part.Anchored = true
  430.     part.Enabled = false
  431.     part.Material = Enum.Material.Neon
  432.     part.BrickColor = BrickColor.new("Bright yellow")
  433.     part.CanCollide = false
  434.     part.CFrame = CFrame.new(midpoint, origin)
  435.     part.Size = Vector3.new(.1, .1, direction.Magnitude)
  436.     game:GetService("TweenService"):Create(part, TweenInfo.new(.5), {Size = Vector3.new(0, 0, direction.Magnitude)}):Play()
  437.     game:GetService("Debris"):AddItem(part, .5)
  438.     return part
  439. end
  440. local function shoot()
  441. coroutine.wrap(function()
  442. shoots:Play()
  443. chatfunc("Star Shooter!")
  444. end)()
  445.   local origin = (ger.CFrame * CFrame.new(3,2,0)).p
  446.     local direction = (m.Hit.p - origin) * 10000
  447.     local raycastParams = RaycastParams.new()
  448.     raycastParams.FilterDescendantsInstances = {owner.Character, script}
  449.     raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
  450.         local result = workspace:Raycast(origin, direction, raycastParams)
  451.  local part = showbeam(origin, result and result.Position - origin or direction)
  452.         if not result then return end
  453.         local hit = result.Instance
  454.         if hit:FindFirstAncestorOfClass("Model") and hit:IsDescendantOf(owner.Character) == false and hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid") then
  455.         hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health =
  456.         hit:FindFirstAncestorOfClass("Model"):FindFirstChildOfClass("Humanoid").Health - 20
  457.         DamageIndicator(20, hit, BrickColor.new("Bright red").Color, Color3.new(.25,0,0))
  458.         end
  459. end
  460. m.KeyDown:Connect(function(k)
  461. if k == 't' and summoned == true and barraging == false and healing == false and bding == false and heavying == false then
  462. heavying = true
  463. tw:Create(spos, TweenInfo.new(.1), {C1 = CFrame.new(0,.25,-5)}):Play()
  464. task.wait(.15)
  465. shoot()
  466. task.wait(.25)
  467. tw:Create(spos, TweenInfo.new(.15), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  468. heavying = false
  469. end
  470. end)
  471. m.KeyDown:Connect(function(k)
  472. if k == 'r' and summoned == true and barraging == false and healing == false and bding == false then
  473. heavying = trueY
  474. coroutine.wrap(function()
  475. tw:Create(spos, TweenInfo.new(.035), {C1 = CFrame.new(0,.25,-5) * CFrame.Angles(0,math.rad(75),0)}):Play()
  476. hevp:Play()
  477. task.wait(.035)
  478. tw:Create(spos, TweenInfo.new(.03), {C1 = CFrame.new(0,.25,-5) * CFrame.Angles(0,math.rad(125),0)}):Play()
  479. task.wait(.03)
  480. tw:Create(spos, TweenInfo.new(.03), {C1 = CFrame.new(0,.25,-5) * CFrame.Angles(0,math.rad(165),0)}):Play()
  481. task.wait(.03)
  482. tw:Create(spos, TweenInfo.new(.03), {C1 = CFrame.new(0,.25,-5) * CFrame.Angles(0,math.rad(-190),0)}):Play()
  483. end)()
  484. task.wait(.15)
  485. hevbox()
  486. task.wait(.1)
  487. tw:Create(spos, TweenInfo.new(.15), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  488. heavying = false
  489. end
  490. end)
  491. m.KeyDown:Connect(function(key)
  492. if key == 'j' and summoned == true and heavying == false and healing == false and barraging == false then
  493. bding = true
  494. tw:Create(spos, TweenInfo.new(.05), {C1 = CFrame.new(0,.25,-5) * CFrame.Angles(0,math.rad(75),0)}):Play()
  495. task.wait(.15)
  496. bd()
  497. task.wait(.5)
  498. tw:Create(spos, TweenInfo.new(.15), {C1 = CFrame.new(2.5,startheight,2.5)}):Play()
  499. bding = false
  500. end
  501. end)
  502. m.KeyDown:Connect(function(k)
  503. if k == 'e' and summoned == true and healing == false and heavying == false and bding == false then
  504. barraging = true
  505. tw:Create(spos, TweenInfo.new(.1), {C1 = CFrame.new(0,.5,-2.5)}):Play()
  506. task.wait(.1)
  507. brg:Play()
  508. barragehitbox()
  509. while barraging == true do
  510. tw:Create(spos, TweenInfo.new(.05), {C1 = CFrame.new(0,.5,-2.5) * CFrame.Angles(deg(-5),deg(-35),deg(15))}):Play()
  511. task.wait(.06)
  512. tw:Create(spos, TweenInfo.new(.05), {C1 = CFrame.new(0,.5,-2.5) * CFrame.Angles(deg(-5),deg(35),deg(-15))}):Play()
  513. task.wait(.06)
  514. end
  515. end
  516. end)
Add Comment
Please, Sign In to add comment