Advertisement
5325325325

Untitled

Oct 19th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.97 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 = owner
  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 h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. --[[ Playtime ]]--
  87. -------------------------------------------------------
  88. --[[
  89.  
  90. This script was created by WafflesAreVeryGood.
  91. ATTACKS
  92. _______
  93.  
  94.  
  95. --]]
  96. -------------------------------------------------------
  97. --[[ Reference ]]--
  98. --[[
  99. Burn Function
  100. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  101.  
  102. Freeze Function
  103. hurt(char.Head, 0, "Freeze", {char, 1})
  104.  
  105. Stun Function
  106. hurt(char.Head, 0, "Stun", {char, 0.2})
  107. --]]
  108. -------------------------------------------------------
  109. math.randomseed(tick())
  110. print("You are using a script created by WafflesAreVeryGood!")
  111. warn("--------Global Message--------")
  112. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  113. warn("------------------------------")
  114. --[[Changeable Variables]]--
  115. local settings = {}
  116. --ShowDamage settings
  117. settings.Damage = {
  118. Color = nil,
  119. StrokeColor = nil,
  120. Font = nil,
  121. }
  122. settings.AttackMenu = false
  123. settings.ShowDamageEnabled = false
  124. settings.CustomAnim = false
  125. local soundlist = {
  126. HardHit1 = "rbxassetid://565207203",
  127. HardHit2 = "rbxassetid://541909913",
  128. HardHit3 = "rbxassetid://541909983",
  129. WeakHit1 = "rbxassetid://558642292",
  130. WeakHit2 = "rbxassetid://541907812",
  131. Slice1 = "rbxassetid://260429964",
  132. Slice2 = "rbxassetid://260430015",
  133. Explosion1 = "rbxassetid://138186576",
  134. Explosion2 = "rbxassetid://157878578",
  135. Woosh1 = "rbxassetid://541909867",
  136. Woosh2 = "rbxassetid://541909763",
  137. Freeze = "rbxassetid://268249319",
  138. Thaw = "rbxassetid://1578580965",
  139. Burn = "rbxassetid://298181829",
  140. One = "rbxassetid://1846615963",
  141. Two = "rbxassetid://1846619160",
  142. Three = "rbxassetid://1846620849",
  143. Four = "rbxassetid://1846859927",
  144. Five = "rbxassetid://1846870244",
  145. ReadyGo = "rbxassetid://1846603855",
  146. Hehehe = "rbxassetid://1846846911",
  147. OnceYou = "rbxassetid://1846594055",
  148. Wow = "rbxassetid://1847115545",
  149. Oops = "rbxassetid://1846613015",
  150.  
  151. }
  152. local attack_data = {
  153. {
  154. Name = "Attack",
  155. Description = "Description",
  156. Key = "Key",
  157. },
  158.  
  159. }
  160.  
  161. --[[Important Variables]]--
  162. local plr = owner
  163. local char = plr.Character
  164. local input = game:GetService('UserInputService')
  165. ----
  166. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  167. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  168. local rs = torso["Right Shoulder"]
  169. local ls = torso["Left Shoulder"]
  170. local rh = torso["Right Hip"]
  171. local lh = torso["Left Hip"]
  172. local neck = torso.Neck
  173. local rj = rootpart["RootJoint"]
  174. local humanoid = char:FindFirstChildOfClass("Humanoid")
  175. ----
  176. local huge = Vector3.new(math.huge, math.huge, math.huge)
  177. local attacking = false
  178. local cananim = true
  179. local animpose = "Idle"
  180. local lastpose = animpose
  181. local movespeed = 0
  182. ----
  183. --[[ Anti-Decompile ]]--
  184. script.Parent = workspace.CurrentCamera
  185. game:GetService('Players')(function()
  186. script:Destroy()
  187. end)
  188. --[[ Moves Gui ]]--
  189.  
  190. local mgui = Instance.new("ScreenGui")
  191. mgui.Name = "MovesGui"
  192. local bg = Instance.new("Frame")
  193. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  194. bg.Position = UDim2.new(0,504,0,164)
  195. bg.Name = "Background"
  196. bg.Size = UDim2.new(-0.035,379,0,225)
  197. bg.Visible = false
  198. bg.Parent = mgui
  199. local container = Instance.new("ScrollingFrame")
  200. container.Name = "Container"
  201. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  202. container.BorderSizePixel = 0
  203. container.Visible = true
  204. container.Position = UDim2.new(0,16,0,46)
  205. container.Size = UDim2.new(0,132,0,162)
  206. container.CanvasSize = UDim2.new(0,0,0,10)
  207. container.ScrollBarThickness = 4
  208. container.Parent = bg
  209. local copy = Instance.new("TextButton")
  210. copy.Name = "Move"
  211. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  212. copy.BorderSizePixel = 0
  213. copy.Position = UDim2.new(0,4,0,4)
  214. copy.Size = UDim2.new(0,118,0,29)
  215. copy.Font = "SourceSansLight"
  216. copy.Text = "Move Name"
  217. copy.TextColor3 = Color3.new(197/255,0,0)
  218. copy.TextSize = 20
  219. copy.Visible = false
  220. copy.Parent = container
  221. local atkinfo = container:Clone()
  222. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  223. atkinfo.Name = "AtkInfo"
  224. atkinfo.Visible = true
  225. atkinfo.Position = UDim2.new(0,167,0,50)
  226. atkinfo.Size = UDim2.new(0,159,0,165)
  227. atkinfo.Parent = bg
  228. local movename = Instance.new("TextLabel")
  229. movename.Name = "MoveName"
  230. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  231. movename.BorderSizePixel = 0
  232. movename.Position = UDim2.new(0,4,0,4)
  233. movename.Size = UDim2.new(0,150,0,30)
  234. movename.Font = "SourceSansLight"
  235. movename.TextColor3 = Color3.new(197/255,0,0)
  236. movename.TextSize = 20
  237. movename.Text = "same"
  238. movename.Parent = atkinfo
  239. local movedesc = movename:Clone()
  240. movedesc.Position = UDim2.new(0,4,0,47)
  241. movedesc.Size = UDim2.new(0,150,0,133)
  242. movedesc.Text = "Move Description"
  243. movedesc.TextSize = 18
  244. movedesc.Name = "MoveDesc"
  245. movedesc.TextXAlignment = "Left"
  246. movedesc.TextYAlignment = "Top"
  247. movedesc.TextWrapped = true
  248. movedesc.Parent = atkinfo
  249. local title = movedesc:Clone()
  250. title.Name = "Title"
  251. title.Font = "SourceSansLight"
  252. title.Text = "Moves List"
  253. title.TextSize = 28
  254. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  255. title.Position = UDim2.new(0,0,0,0)
  256. title.Size = UDim2.new(1,0,0,30)
  257. title.TextXAlignment = "Center"
  258. title.TextYAlignment = "Center"
  259. title.Parent = bg
  260. local toggle = copy:Clone()
  261. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  262. toggle.Position = UDim2.new(0,0,0,288)
  263. toggle.Size = UDim2.new(0,70,0,20)
  264. toggle.Visible = true
  265. toggle.Font = "SourceSans"
  266. toggle.Text = "Toggle Moves"
  267. toggle.Name = "Toggle"
  268. toggle.TextSize = 14
  269. toggle.Parent = mgui
  270. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  271. if settings.AttackMenu then
  272. mgui.Enabled = false
  273. end
  274. toggle.MouseButton1Click:connect(function()
  275. bg.Visible = not bg.Visible
  276. end)
  277. local pos = copy.Position -UDim2.new(0,0,0,29)
  278. for _,data in pairs(attack_data) do
  279. local new = copy:Clone()
  280. pos = pos +UDim2.new(0,0,0,29)
  281. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  282. new.Position = pos
  283. new.Text = data.Name.."["..data.Key.."]"
  284. new.Visible = true
  285. spawn(function()
  286. swait()
  287. if not new.TextFits then
  288. new.TextScaled = true
  289. end
  290. end)
  291. new.Parent = container
  292. new.MouseButton1Click:connect(function()
  293. movename.Text = data.Name
  294. movedesc.Text = data.Description
  295. spawn(function()
  296. swait()
  297. if not movename.TextFits then
  298. movename.TextScaled = true
  299. else
  300. movename.TextScaled = false
  301. end
  302. if not movedesc.TextFits then
  303. movename.TextScaled = true
  304. else
  305. movename.TextScaled = false
  306. end
  307. end)
  308. end)
  309. end
  310. --[[ Functions ]]--
  311.  
  312. function addattack(keycode, func)
  313. if keycode ~= "MouseClick" then
  314. input.InputBegan:connect(function(inp)
  315. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  316. func()
  317. end
  318. end)
  319. else
  320. mouse.Button1Down:connect(function()
  321. func()
  322. end)
  323. end
  324. end
  325. function attackend(keycode, func)
  326. input.InputEnded:connect(function(inp)
  327. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  328. func()
  329. end
  330. end)
  331. end
  332. function swait(t)
  333. if t then
  334. for i = 0, t do
  335. game:GetService('RunService').Stepped:wait(0)
  336. end
  337. else
  338. game:GetService('RunService').Stepped:wait(0)
  339. end
  340. return true
  341. end
  342. function fade(obj, dest, grow)
  343. spawn(function()
  344. local oldcf = obj.CFrame
  345. for i = 0, 10 do
  346. if grow then
  347. obj.Size = obj.Size +Vector3.new(1,1,1)
  348. obj.CFrame = oldcf
  349. end
  350. obj.Transparency = obj.Transparency +0.1
  351. swait()
  352. end
  353. if dest then
  354. obj:Destroy()
  355. end
  356. end)
  357. end
  358. function replacejoint(name)
  359. local j = torso:FindFirstChild(name)
  360. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  361. if j then
  362. if true then
  363. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  364. local new = Instance.new("Weld")
  365. local c0 = j.C0
  366. local c1 = j.C1
  367. new.Part0 = j.Part0
  368. j.Part0 = nil
  369. new.Name = j.Name.." Replacement"
  370. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  371. new.Parent = j.Parent
  372. new.Part1 = j.Part1
  373. new.C0 = c0
  374. new.C1 = c1
  375. return new
  376. end
  377. end
  378. end
  379. function removejoint(name, fast)
  380. local j = torso:FindFirstChild(name.." Replacement")
  381. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  382. if j then
  383. local p0 = j.Part0
  384. if p0 ~= nil then
  385. local c0 = j.C0
  386. local c1 = j.C1
  387. j:Destroy()
  388. local new = p0:FindFirstChild(name)
  389. local ac0 = new.C0
  390. local ac1 = new.C1
  391. new.Part0 = p0
  392. new.C0 = c0
  393. new.C1 = c1
  394. spawn(function()
  395. if name ~= "RootJoint" then
  396. if not fast then
  397. for i = 0, 0.6, 0.1 do
  398. print(i)
  399. new.C0 = new.C0:Lerp(ac0, 0.5)
  400. new.C1 = new.C1:lerp(ac1, 0.5)
  401. swait()
  402. end
  403. else
  404. new.C0 = new.C0:Lerp(ac0, 1)
  405. new.C1 = new.C1:lerp(ac1, 1)
  406. end
  407. end
  408. end)
  409. end
  410. end
  411. end
  412. function fixalljoints(fast)
  413. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  414. removejoint(v, fast)
  415. end
  416. end
  417. function getnewjoints()
  418. local rs = replacejoint("Right Shoulder")
  419. local ls = replacejoint("Left Shoulder")
  420. local rh = replacejoint("Right Hip")
  421. local lh = replacejoint("Left Hip")
  422. local neck = replacejoint("Neck")
  423. local rj = replacejoint("RootJoint")
  424. return rs,ls,rh,lh,neck,rj
  425. end
  426. function knockback(hit, force)
  427. local bv = Instance.new("BodyVelocity")
  428. bv.MaxForce = huge
  429. bv.Velocity = force
  430. bv.Parent = hit
  431. game:GetService('Debris'):AddItem(bv, 0.15)
  432. end
  433. function soundeffect(id, volume, speed, parent, extra)
  434. extra = extra or {}
  435. local func = function()
  436. local s = LoadLibrary("RbxUtility").Create("Sound")()
  437. s.Name = "WSoundEffect"
  438. s.Volume = volume
  439. s.PlaybackSpeed = speed
  440. s.SoundId = id
  441. s.Looped = false
  442. if extra.Pitch then
  443. local ef = Instance.new("PitchShiftSoundEffect")
  444. ef.Octave = extra.Pitch or 1
  445. ef.Enabled = true
  446. ef.Priority = 0
  447. ef.Parent = s
  448. end
  449. s.Parent = parent
  450. s:Play()
  451. s.TimePosition = extra.Start or 0
  452. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  453. s:Destroy()
  454. return s
  455. end
  456. if extra.ForceWait then
  457. func()
  458. else
  459. return spawn(func)
  460. end
  461. end
  462. function getfunction(nm)
  463. if nm == "Burn" then
  464. return function(character, data)
  465. if character:FindFirstChild("Burn") then
  466. return
  467. end
  468. local val = Instance.new("StringValue")
  469. val.Name = "Burn"
  470. val.Parent = character
  471. for i = 1, data.Time*100 do
  472. if not character:FindFirstChild("Burn") then
  473. break
  474. end
  475. if i%data.Rate == 0 then
  476. local hum = character:FindFirstChildOfClass("Humanoid")
  477. if hum then
  478. hurt(torso, data.Damage)
  479. end
  480. soundeffect(soundlist.Burn, 1, 1, torso)
  481. spawn(function()
  482. for i = 1, 4 do
  483. spawn(function()
  484. local p = Instance.new("Part")
  485. p.Material = "Neon"
  486. p.CanCollide = false
  487. p.Anchored = true
  488. p.Size = Vector3.new(0.5,0.5,0.5)
  489. p.Name = "fireeffect"
  490. p.Color = data.Color or Color3.new(1,162/255,0)
  491. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  492. p.Parent = torso
  493. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  494. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  495. local opcf = p.CFrame
  496. local opsz = p.Size
  497. for i = 0, 1, 0.01 do
  498. p.Transparency = i/1
  499. local cf = p.CFrame
  500. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  501. p.CFrame = cf
  502. p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 )
  503. swait()
  504. end
  505. p:Destroy()
  506. swait(5)
  507. end)
  508. swait()
  509. end
  510. end)
  511. end
  512. swait()
  513. end
  514. val:Destroy()
  515. end
  516. end
  517. if nm == "Poison" then
  518. return function(character, data)
  519.  
  520. end
  521. end
  522. if nm == "Freeze" then
  523. return function(character, t)
  524. if not character:FindFirstChild("Frozen") then
  525. local val = Instance.new("StringValue")
  526. val.Name = "Frozen"
  527. val.Parent = character
  528. local unanchor = {}
  529. local freezeparts = {}
  530. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  531. for _,v in pairs(character:GetDescendants()) do
  532. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  533. if v.Transparency ~= 1 then
  534. if not v.Anchored then
  535. table.insert(unanchor, v)
  536. end
  537. v.Anchored = true
  538. local new = v:Clone()
  539. new:ClearAllChildren()
  540. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  541. if mesh then
  542. mesh = mesh:Clone()
  543. mesh.TextureId = ""
  544. if mesh.Scale ~= Vector3.new(1,1,1) then
  545. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  546. end
  547. mesh.Parent = new
  548. end
  549. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  550. new.CanCollide = false
  551. new.Anchored = true
  552. new.Name = "freezepart"
  553. new.Material = "Ice"
  554. new.BrickColor = BrickColor.new("Pastel light blue")
  555. new.TopSurface = "Smooth"
  556. new.BottomSurface = "Smooth"
  557. new.Transparency = 0
  558. new.CFrame = v.CFrame
  559. new.Parent = v
  560. table.insert(freezeparts, new)
  561. end
  562. end
  563. end
  564. swait(50*t)
  565. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  566. val:Destroy()
  567. for _,v in pairs(unanchor) do
  568. v.Anchored = false
  569. end
  570. for _,v in pairs(freezeparts) do
  571. v.Anchored = false
  572. v.CanCollide = true
  573. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  574. game:GetService('Debris'):AddItem(v, 5)
  575. end
  576. end
  577. end
  578. end
  579. if nm == "Stun" then
  580. return function(character, t)
  581. local humanoid = character:FindFirstChildOfClass("Humanoid")
  582. local val = Instance.new("StringValue")
  583. val.Name = "Stun"
  584. val.Parent = character
  585. if humanoid then
  586. humanoid.PlatformStand = true
  587. end
  588. for i = 1, t*100 do
  589. if humanoid then
  590. humanoid.PlatformStand = true
  591. end
  592. swait()
  593. end
  594. if humanoid then
  595. humanoid.PlatformStand = false
  596. end
  597. val:Destroy()
  598. end
  599. end
  600. if nm == "Paralyze" then
  601. return function(character, t)
  602.  
  603. end
  604. end
  605. return
  606. end
  607. function showdamage(cf, txtdata)
  608. --[[
  609. [Text Data]
  610. Font
  611. Text
  612. Color
  613. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  614. --]]
  615. local p = Instance.new("Part")
  616. p.Name = "DamagePart"
  617. p.CanCollide = false
  618. p.Anchored = true
  619. p.Transparency = 1
  620. p.Size = Vector3.new(0.1,0.1,0.1)
  621. p.CFrame = cf
  622. local gui = Instance.new("BillboardGui")
  623. gui.Name = "GUI"
  624. gui.Adornee = p
  625. gui.LightInfluence = 0
  626. gui.Size = UDim2.new(1.5,0,0.7,0)
  627. gui.StudsOffset = Vector3.new(0,0.5,0)
  628. local tl = Instance.new("TextLabel")
  629. tl.Name = "tl"
  630. tl.BackgroundTransparency = 1
  631. tl.Position = UDim2.new(0,0,0,0)
  632. tl.Size = UDim2.new(2,0,2,0)
  633. tl.Font = txtdata.Font or "SourceSans"
  634. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  635. tl.Text = txtdata.Text or ""
  636. tl.TextScaled = true
  637. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  638. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  639. tl.Rotation = math.random(-10,10)
  640. tl.Parent = gui
  641. gui.Parent = p
  642. local og = gui
  643. gui = og:Clone()
  644. gui.Parent = og.Parent
  645. tl = gui.tl
  646. og:Destroy()
  647. p.Parent = char
  648. spawn(function()
  649. for i = 1, 100 do
  650. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  651. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  652. if txtdata.StrokeColor then
  653. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  654. end
  655. swait()
  656. end
  657. p:Destroy()
  658. end)
  659. end
  660. function stabilizer(obj)
  661. local bp = Instance.new("BodyPosition")
  662. bp.MaxForce = huge
  663. bp.Position = obj.Position
  664. bp.Parent = obj
  665. end
  666. function camshake(direction, intensity, duration)
  667. if direction:lower() == "inout" then
  668. workspace.CurrentCamera.FieldOfView = intensity
  669. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  670. elseif direction:lower() == "left" then
  671. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  672. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  673. elseif direction:lower() == "right" then
  674. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  675. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  676. elseif direction:lower() == "up" then
  677. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  678. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  679. elseif direction:lower() == "down" then
  680. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  681. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  682. end
  683. end
  684. function hurt(hit, dmg, effect, args)
  685. --pcall(function()
  686. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  687. if hum then
  688. if hum.Parent ~= char or true then
  689. if typeof(dmg) == "table" then
  690. dmg = math.random(dmg[1], dmg[2])
  691. end
  692. hum.Health = hum.Health - dmg
  693. if settings.ShowDamageEnabled then
  694. local dmgdata = {
  695. Color = settings.Damage.Color,
  696. StrokeColor = settings.Damage.StrokeColor,
  697. Font = settings.Damage.Font,
  698. Text = dmg,
  699. }
  700. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  701. end
  702. if effect then
  703. if typeof(effect) == "function" then
  704. local s,m = pcall(effect, hit.CFrame)
  705. if not s then
  706. warn("Error in function: "..m or "unknown")
  707. end
  708. end
  709. if typeof(effect) == "string" then
  710. local func = getfunction(effect)
  711. if func then
  712. local s,m
  713. if args then
  714. s,m = pcall(func, unpack(args))
  715. else
  716. s,m = pcall(func)
  717. end
  718. if not s then
  719. warn("Error in function: "..m or "unknown")
  720. end
  721. end
  722. end
  723. end
  724. return true
  725. end
  726. end
  727. --end)
  728. end
  729. --[[ uhhhhhhhhhhhhhhhh ]]--
  730. pcall(function()
  731. NS([[
  732. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Playtime")
  733. store:UpdateAsync("y'all", function(old)
  734. old = old or {}
  735. if typeof(old) ~= "table" then
  736. old = {} --stop breaking my datastores
  737. end
  738. local ok = true
  739. for _,v in pairs(old) do
  740. if typeof(v) == "table" then
  741. if v.name == owner.Name or v.userid == owner.UserId then
  742. ok = false
  743. table.insert(v.uses, tick())
  744. end
  745. end
  746. end
  747. if ok then
  748. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  749. end
  750. return old
  751. end)
  752. script:Destroy()
  753. ]], workspace)
  754. end)
  755. --[[ Actual script :OOOOOOOOOO ]]--
  756.  
  757. --Converted with ttyyuu12345's model to script plugin v4
  758. function sandbox(var,func)
  759. local env = getfenv(func)
  760. local newenv = setmetatable({},{
  761. __index = function(self,k)
  762. if k=="script" then
  763. return var
  764. else
  765. return env[k]
  766. end
  767. end,
  768. })
  769. setfenv(func,newenv)
  770. return func
  771. end
  772. cors = {}
  773. mas = Instance.new("Model",game:GetService("Lighting"))
  774. Model0 = Instance.new("Model")
  775. Part1 = Instance.new("Part")
  776. SpecialMesh2 = Instance.new("SpecialMesh")
  777. Part3 = Instance.new("Part")
  778. SpecialMesh4 = Instance.new("SpecialMesh")
  779. Part5 = Instance.new("Part")
  780. SpecialMesh6 = Instance.new("SpecialMesh")
  781. Part7 = Instance.new("Part")
  782. SpecialMesh8 = Instance.new("SpecialMesh")
  783. Part9 = Instance.new("Part")
  784. SpecialMesh10 = Instance.new("SpecialMesh")
  785. Part11 = Instance.new("Part")
  786. SpecialMesh12 = Instance.new("SpecialMesh")
  787. Part13 = Instance.new("Part")
  788. SpecialMesh14 = Instance.new("SpecialMesh")
  789. Part15 = Instance.new("Part")
  790. SpecialMesh16 = Instance.new("SpecialMesh")
  791. Part17 = Instance.new("Part")
  792. SpecialMesh18 = Instance.new("SpecialMesh")
  793. Part19 = Instance.new("Part")
  794. Part20 = Instance.new("Part")
  795. SpecialMesh21 = Instance.new("SpecialMesh")
  796. Part22 = Instance.new("Part")
  797. SpecialMesh23 = Instance.new("SpecialMesh")
  798. Part24 = Instance.new("Part")
  799. SpecialMesh25 = Instance.new("SpecialMesh")
  800. Part26 = Instance.new("Part")
  801. SpecialMesh27 = Instance.new("SpecialMesh")
  802. Part28 = Instance.new("Part")
  803. SpecialMesh29 = Instance.new("SpecialMesh")
  804. Part30 = Instance.new("Part")
  805. SpecialMesh31 = Instance.new("SpecialMesh")
  806. Part32 = Instance.new("Part")
  807. SpecialMesh33 = Instance.new("SpecialMesh")
  808. Part34 = Instance.new("Part")
  809. Model0.Name = "Rope"
  810. Model0.Parent = mas
  811. Model0.PrimaryPart = Part19
  812. Part1.Parent = Model0
  813. Part1.BrickColor = BrickColor.new("Institutional white")
  814. Part1.Rotation = Vector3.new(15, -90, 0)
  815. Part1.Anchored = true
  816. Part1.CanCollide = false
  817. Part1.Size = Vector3.new(0.5, 0.5, 0.5)
  818. Part1.CFrame = CFrame.new(242.25, 1.8062222, -319.676788, 1.26665881e-07, 3.39399868e-08, -1, -0.258818746, 0.965925574, 0, 0.965925872, 0.258818805, 1.31134158e-07)
  819. Part1.BottomSurface = Enum.SurfaceType.Smooth
  820. Part1.TopSurface = Enum.SurfaceType.Smooth
  821. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  822. Part1.Position = Vector3.new(242.25, 1.8062222, -319.676788)
  823. Part1.Orientation = Vector3.new(0, -90, -15)
  824. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  825. SpecialMesh2.Parent = Part1
  826. SpecialMesh2.MeshType = Enum.MeshType.Cylinder
  827. Part3.Parent = Model0
  828. Part3.BrickColor = BrickColor.new("Institutional white")
  829. Part3.Rotation = Vector3.new(-15, 90, 0)
  830. Part3.Anchored = true
  831. Part3.CanCollide = false
  832. Part3.Size = Vector3.new(0.5, 0.5, 0.5)
  833. Part3.CFrame = CFrame.new(242.25, 1.8062222, -318.323212, -4.22219593e-08, -1.13133289e-08, 1, -0.258818805, 0.965925694, 0, -0.965925872, -0.258818805, -4.37113883e-08)
  834. Part3.BottomSurface = Enum.SurfaceType.Smooth
  835. Part3.TopSurface = Enum.SurfaceType.Smooth
  836. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  837. Part3.Position = Vector3.new(242.25, 1.8062222, -318.323212)
  838. Part3.Orientation = Vector3.new(0, 90, -15)
  839. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  840. SpecialMesh4.Parent = Part3
  841. SpecialMesh4.MeshType = Enum.MeshType.Cylinder
  842. Part5.Parent = Model0
  843. Part5.BrickColor = BrickColor.new("Institutional white")
  844. Part5.Rotation = Vector3.new(-30, 90, 0)
  845. Part5.Anchored = true
  846. Part5.CanCollide = false
  847. Part5.Size = Vector3.new(0.5, 0.5, 0.5)
  848. Part5.CFrame = CFrame.new(242.25, 1.97095168, -317.925537, -3.78551768e-08, -2.18556693e-08, 1, -0.499999464, 0.86602509, 0, -0.866025567, -0.499999404, -4.37113883e-08)
  849. Part5.BottomSurface = Enum.SurfaceType.Smooth
  850. Part5.TopSurface = Enum.SurfaceType.Smooth
  851. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  852. Part5.Position = Vector3.new(242.25, 1.97095168, -317.925537)
  853. Part5.Orientation = Vector3.new(0, 90, -30)
  854. Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  855. SpecialMesh6.Parent = Part5
  856. SpecialMesh6.MeshType = Enum.MeshType.Cylinder
  857. Part7.Parent = Model0
  858. Part7.BrickColor = BrickColor.new("Institutional white")
  859. Part7.Rotation = Vector3.new(75, -90, 0)
  860. Part7.Anchored = true
  861. Part7.CanCollide = false
  862. Part7.Size = Vector3.new(0.5, 0.5, 0.5)
  863. Part7.CFrame = CFrame.new(242.25, 3.22219825, -321.275787, 3.3940708e-08, 1.26665682e-07, -1, -0.965924203, 0.258824617, 4.52781157e-14, 0.258824676, 0.965924442, 1.31134144e-07)
  864. Part7.BottomSurface = Enum.SurfaceType.Smooth
  865. Part7.TopSurface = Enum.SurfaceType.Smooth
  866. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  867. Part7.Position = Vector3.new(242.25, 3.22219825, -321.275787)
  868. Part7.Orientation = Vector3.new(0, -90, -75)
  869. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  870. SpecialMesh8.Parent = Part7
  871. SpecialMesh8.MeshType = Enum.MeshType.Cylinder
  872. Part9.Parent = Model0
  873. Part9.BrickColor = BrickColor.new("Institutional white")
  874. Part9.Rotation = Vector3.new(0, 90, 0)
  875. Part9.Anchored = true
  876. Part9.CanCollide = false
  877. Part9.Size = Vector3.new(0.5, 0.5, 0.5)
  878. Part9.CFrame = CFrame.new(242.25, 1.750036, -318.75, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  879. Part9.BottomSurface = Enum.SurfaceType.Smooth
  880. Part9.TopSurface = Enum.SurfaceType.Smooth
  881. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  882. Part9.Position = Vector3.new(242.25, 1.750036, -318.75)
  883. Part9.Orientation = Vector3.new(0, 90, 0)
  884. Part9.Color = Color3.new(0.972549, 0.972549, 0.972549)
  885. SpecialMesh10.Parent = Part9
  886. SpecialMesh10.MeshType = Enum.MeshType.Cylinder
  887. Part11.Parent = Model0
  888. Part11.BrickColor = BrickColor.new("Institutional white")
  889. Part11.Rotation = Vector3.new(90, -90, 0)
  890. Part11.Anchored = true
  891. Part11.CanCollide = false
  892. Part11.Size = Vector3.new(5.25, 0.5, 0.5)
  893. Part11.CFrame = CFrame.new(242.25, 6.02398205, -321.33197, 7.46914737e-13, 1.31134186e-07, -1, -0.999999881, 6.02006958e-06, 4.52780954e-14, 6.04987144e-06, 1.00000036, 1.31134144e-07)
  894. Part11.BottomSurface = Enum.SurfaceType.Smooth
  895. Part11.TopSurface = Enum.SurfaceType.Smooth
  896. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  897. Part11.Position = Vector3.new(242.25, 6.02398205, -321.33197)
  898. Part11.Orientation = Vector3.new(0, -90, -90)
  899. Part11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  900. SpecialMesh12.Parent = Part11
  901. SpecialMesh12.MeshType = Enum.MeshType.Cylinder
  902. Part13.Parent = Model0
  903. Part13.BrickColor = BrickColor.new("Institutional white")
  904. Part13.Rotation = Vector3.new(45, -90, 0)
  905. Part13.Anchored = true
  906. Part13.CanCollide = false
  907. Part13.Size = Vector3.new(0.5, 0.5, 0.5)
  908. Part13.CFrame = CFrame.new(242.25, 2.48300886, -320.848999, 9.27258981e-08, 9.27256707e-08, -1, -0.707105637, 0.707105696, -3.76821834e-15, 0.707107186, 0.707105458, 1.31134158e-07)
  909. Part13.BottomSurface = Enum.SurfaceType.Smooth
  910. Part13.TopSurface = Enum.SurfaceType.Smooth
  911. Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  912. Part13.Position = Vector3.new(242.25, 2.48300886, -320.848999)
  913. Part13.Orientation = Vector3.new(0, -90, -45)
  914. Part13.Color = Color3.new(0.972549, 0.972549, 0.972549)
  915. SpecialMesh14.Parent = Part13
  916. SpecialMesh14.MeshType = Enum.MeshType.Cylinder
  917. Part15.Parent = Model0
  918. Part15.BrickColor = BrickColor.new("Institutional white")
  919. Part15.Rotation = Vector3.new(-45, 90, 0)
  920. Part15.Anchored = true
  921. Part15.CanCollide = false
  922. Part15.Size = Vector3.new(0.5, 0.5, 0.5)
  923. Part15.CFrame = CFrame.new(242.25, 2.4830091, -317.151001, -3.09086303e-08, -3.09085593e-08, 1, -0.707105756, 0.707105815, -3.76821919e-15, -0.707107186, -0.707105458, -4.37113883e-08)
  924. Part15.BottomSurface = Enum.SurfaceType.Smooth
  925. Part15.TopSurface = Enum.SurfaceType.Smooth
  926. Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  927. Part15.Position = Vector3.new(242.25, 2.4830091, -317.151001)
  928. Part15.Orientation = Vector3.new(0, 90, -45)
  929. Part15.Color = Color3.new(0.972549, 0.972549, 0.972549)
  930. SpecialMesh16.Parent = Part15
  931. SpecialMesh16.MeshType = Enum.MeshType.Cylinder
  932. Part17.Parent = Model0
  933. Part17.BrickColor = BrickColor.new("Institutional white")
  934. Part17.Rotation = Vector3.new(-90, 90, 0)
  935. Part17.Anchored = true
  936. Part17.CanCollide = false
  937. Part17.Size = Vector3.new(5.25, 0.5, 0.5)
  938. Part17.CFrame = CFrame.new(242.25, 6.02398252, -316.66803, -2.1801823e-13, -4.37113954e-08, 1, -1, 6.02007049e-06, 4.52781021e-14, -6.04987144e-06, -1.00000036, -4.37113705e-08)
  939. Part17.BottomSurface = Enum.SurfaceType.Smooth
  940. Part17.TopSurface = Enum.SurfaceType.Smooth
  941. Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  942. Part17.Position = Vector3.new(242.25, 6.02398252, -316.66803)
  943. Part17.Orientation = Vector3.new(0, 90, -90)
  944. Part17.Color = Color3.new(0.972549, 0.972549, 0.972549)
  945. SpecialMesh18.Parent = Part17
  946. SpecialMesh18.MeshType = Enum.MeshType.Cylinder
  947. Part19.Name = "Core"
  948. Part19.Parent = Model0
  949. Part19.BrickColor = BrickColor.new("Institutional white")
  950. Part19.Transparency = 1
  951. Part19.Rotation = Vector3.new(0, 90, 0)
  952. Part19.Anchored = true
  953. Part19.CanCollide = false
  954. Part19.Size = Vector3.new(0.5, 0.5, 0.5)
  955. Part19.CFrame = CFrame.new(242.25, 7.00003576, -319, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
  956. Part19.BottomSurface = Enum.SurfaceType.Smooth
  957. Part19.TopSurface = Enum.SurfaceType.Smooth
  958. Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
  959. Part19.Position = Vector3.new(242.25, 7.00003576, -319)
  960. Part19.Orientation = Vector3.new(0, 90, 0)
  961. Part19.Color = Color3.new(0.972549, 0.972549, 0.972549)
  962. Part20.Parent = Model0
  963. Part20.BrickColor = BrickColor.new("Institutional white")
  964. Part20.Rotation = Vector3.new(30, -90, 0)
  965. Part20.Anchored = true
  966. Part20.CanCollide = false
  967. Part20.Size = Vector3.new(0.5, 0.5, 0.5)
  968. Part20.CFrame = CFrame.new(242.25, 1.97095168, -320.074463, 1.13565534e-07, 6.55670007e-08, -1, -0.499999404, 0.866024971, 0, 0.866025567, 0.499999404, 1.31134158e-07)
  969. Part20.BottomSurface = Enum.SurfaceType.Smooth
  970. Part20.TopSurface = Enum.SurfaceType.Smooth
  971. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  972. Part20.Position = Vector3.new(242.25, 1.97095168, -320.074463)
  973. Part20.Orientation = Vector3.new(0, -90, -30)
  974. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  975. SpecialMesh21.Parent = Part20
  976. SpecialMesh21.MeshType = Enum.MeshType.Cylinder
  977. Part22.Parent = Model0
  978. Part22.BrickColor = BrickColor.new("Institutional white")
  979. Part22.Rotation = Vector3.new(-75, 90, 0)
  980. Part22.Anchored = true
  981. Part22.CanCollide = false
  982. Part22.Size = Vector3.new(0.5, 0.5, 0.5)
  983. Part22.CFrame = CFrame.new(242.25, 3.22219849, -316.724213, -1.13135386e-08, -4.22218989e-08, 1, -0.965924323, 0.258824676, 4.52781225e-14, -0.258824676, -0.965924442, -4.37113741e-08)
  984. Part22.BottomSurface = Enum.SurfaceType.Smooth
  985. Part22.TopSurface = Enum.SurfaceType.Smooth
  986. Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  987. Part22.Position = Vector3.new(242.25, 3.22219849, -316.724213)
  988. Part22.Orientation = Vector3.new(0, 90, -75)
  989. Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  990. SpecialMesh23.Parent = Part22
  991. SpecialMesh23.MeshType = Enum.MeshType.Cylinder
  992. Part24.Parent = Model0
  993. Part24.BrickColor = BrickColor.new("Institutional white")
  994. Part24.Rotation = Vector3.new(60, -90, 0)
  995. Part24.Anchored = true
  996. Part24.CanCollide = false
  997. Part24.Size = Vector3.new(0.5, 0.5, 0.5)
  998. Part24.CFrame = CFrame.new(242.25, 2.82451463, -321.111053, 6.5567221e-08, 1.13565022e-07, -1, -0.866022885, 0.499997199, -1.29984245e-14, 0.500001192, 0.866021693, 1.31134158e-07)
  999. Part24.BottomSurface = Enum.SurfaceType.Smooth
  1000. Part24.TopSurface = Enum.SurfaceType.Smooth
  1001. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1002. Part24.Position = Vector3.new(242.25, 2.82451463, -321.111053)
  1003. Part24.Orientation = Vector3.new(0, -90, -60)
  1004. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1005. SpecialMesh25.Parent = Part24
  1006. SpecialMesh25.MeshType = Enum.MeshType.Cylinder
  1007. Part26.Parent = Model0
  1008. Part26.BrickColor = BrickColor.new("Institutional white")
  1009. Part26.Rotation = Vector3.new(30, -90, 0)
  1010. Part26.Anchored = true
  1011. Part26.CanCollide = false
  1012. Part26.Size = Vector3.new(0.5, 0.5, 0.5)
  1013. Part26.CFrame = CFrame.new(242.25, 2.22095108, -320.507477, 1.13565534e-07, 6.55670007e-08, -1, -0.499999404, 0.866024971, 0, 0.866025567, 0.499999404, 1.31134158e-07)
  1014. Part26.BottomSurface = Enum.SurfaceType.Smooth
  1015. Part26.TopSurface = Enum.SurfaceType.Smooth
  1016. Part26.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1017. Part26.Position = Vector3.new(242.25, 2.22095108, -320.507477)
  1018. Part26.Orientation = Vector3.new(0, -90, -30)
  1019. Part26.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1020. SpecialMesh27.Parent = Part26
  1021. SpecialMesh27.MeshType = Enum.MeshType.Cylinder
  1022. Part28.Parent = Model0
  1023. Part28.BrickColor = BrickColor.new("Institutional white")
  1024. Part28.Rotation = Vector3.new(-30, 90, 0)
  1025. Part28.Anchored = true
  1026. Part28.CanCollide = false
  1027. Part28.Size = Vector3.new(0.5, 0.5, 0.5)
  1028. Part28.CFrame = CFrame.new(242.25, 2.22095132, -317.492523, -3.78551768e-08, -2.18556693e-08, 1, -0.499999464, 0.86602509, 0, -0.866025567, -0.499999404, -4.37113883e-08)
  1029. Part28.BottomSurface = Enum.SurfaceType.Smooth
  1030. Part28.TopSurface = Enum.SurfaceType.Smooth
  1031. Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1032. Part28.Position = Vector3.new(242.25, 2.22095132, -317.492523)
  1033. Part28.Orientation = Vector3.new(0, 90, -30)
  1034. Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1035. SpecialMesh29.Parent = Part28
  1036. SpecialMesh29.MeshType = Enum.MeshType.Cylinder
  1037. Part30.Parent = Model0
  1038. Part30.BrickColor = BrickColor.new("Institutional white")
  1039. Part30.Rotation = Vector3.new(0, -90, 0)
  1040. Part30.Anchored = true
  1041. Part30.CanCollide = false
  1042. Part30.Size = Vector3.new(0.5, 0.5, 0.5)
  1043. Part30.CFrame = CFrame.new(242.25, 1.750036, -319.25, 1.31134158e-07, 0, -1, 0, 0.999999821, 0, 1, 0, 1.31134158e-07)
  1044. Part30.BottomSurface = Enum.SurfaceType.Smooth
  1045. Part30.TopSurface = Enum.SurfaceType.Smooth
  1046. Part30.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1047. Part30.Position = Vector3.new(242.25, 1.750036, -319.25)
  1048. Part30.Orientation = Vector3.new(0, -90, 0)
  1049. Part30.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1050. SpecialMesh31.Parent = Part30
  1051. SpecialMesh31.MeshType = Enum.MeshType.Cylinder
  1052. Part32.Parent = Model0
  1053. Part32.BrickColor = BrickColor.new("Institutional white")
  1054. Part32.Rotation = Vector3.new(-60, 90, 0)
  1055. Part32.Anchored = true
  1056. Part32.CanCollide = false
  1057. Part32.Size = Vector3.new(0.5, 0.5, 0.5)
  1058. Part32.CFrame = CFrame.new(242.25, 2.82451487, -316.888947, -2.18557297e-08, -3.78550133e-08, 1, -0.866023004, 0.499997258, -1.29984262e-14, -0.500001192, -0.866021693, -4.37113954e-08)
  1059. Part32.BottomSurface = Enum.SurfaceType.Smooth
  1060. Part32.TopSurface = Enum.SurfaceType.Smooth
  1061. Part32.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1062. Part32.Position = Vector3.new(242.25, 2.82451487, -316.888947)
  1063. Part32.Orientation = Vector3.new(0, 90, -60)
  1064. Part32.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1065. SpecialMesh33.Parent = Part32
  1066. SpecialMesh33.MeshType = Enum.MeshType.Cylinder
  1067. Part34.Name = "Toucher"
  1068. Part34.Parent = Model0
  1069. Part34.BrickColor = BrickColor.new("Institutional white")
  1070. Part34.Transparency = 1
  1071. Part34.Rotation = Vector3.new(0, -90, 0)
  1072. Part34.Anchored = true
  1073. Part34.CanCollide = false
  1074. Part34.Size = Vector3.new(5.5, 0.5, 0.5)
  1075. Part34.CFrame = CFrame.new(242.25, 1.750036, -319, 1.31134158e-07, 0, -1, 0, 0.999999821, 0, 1, 0, 1.31134158e-07)
  1076. Part34.BottomSurface = Enum.SurfaceType.Smooth
  1077. Part34.TopSurface = Enum.SurfaceType.Smooth
  1078. Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1079. Part34.Position = Vector3.new(242.25, 1.750036, -319)
  1080. Part34.Orientation = Vector3.new(0, -90, 0)
  1081. Part34.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1082. for i,v in pairs(mas:GetChildren()) do
  1083. v.Parent = owner
  1084. pcall(function() v:MakeJoints() end)
  1085. end
  1086. mas:Destroy()
  1087. for i,v in pairs(cors) do
  1088. spawn(function()
  1089. pcall(v)
  1090. end)
  1091. end
  1092.  
  1093.  
  1094.  
  1095.  
  1096. local rope = char.Rope
  1097. function setrope(trans)
  1098. trans = trans or 0
  1099. for i,v in pairs(rope:GetChildren()) do
  1100. if v.Name ~= "Toucher" and v.Name ~= "Core" then
  1101. v.Transparency = trans
  1102. end
  1103. end
  1104. end
  1105. humanoid.WalkSpeed = 30
  1106. humanoid.JumpPower = 0
  1107. local bbg = Instance.new("BillboardGui")
  1108. bbg.Name = "Character"
  1109. bbg.Adornee = torso
  1110. bbg.AlwaysOnTop = false
  1111. bbg.Size = UDim2.new(7,0,7,0)
  1112. bbg.StudsOffset = Vector3.new(0,0,0)
  1113. local image = Instance.new("ImageLabel")
  1114. image.BackgroundTransparency = 1
  1115. image.Size = UDim2.new(1,0,1,0)
  1116. image.Image = "rbxassetid://1817854735"
  1117. image.Parent = bbg
  1118. bbg.Parent = torso
  1119. addattack(Enum.KeyCode.Z, function()
  1120. soundeffect(soundlist.Hehehe, 1, 1, char.Torso)
  1121. end)
  1122. torso.Touched:connect(function(hit)
  1123. if hurt(hit, 0) and not attacking then
  1124. attacking = true
  1125. humanoid.WalkSpeed = 0
  1126. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1127. local oldws = hum.WalkSpeed
  1128. local jpow = hum.JumpPower
  1129. hum.JumpPower = 0
  1130. soundeffect(soundlist.OnceYou, 1, 1, char.Torso, {ForceWait = true})
  1131. soundeffect(soundlist.ReadyGo, 1, 1, char.Torso, {ForceWait = true})
  1132. hum.WalkSpeed = oldws
  1133. hum.JumpPower = jpow
  1134. setrope(0)
  1135. rootpart.CFrame = rootpart.CFrame *CFrame.new(0,0,6)
  1136. local function play()
  1137. local con,oops
  1138. con = rope.Toucher.Touched:connect(function(tar)
  1139. if tar.Parent == hit.Parent then
  1140. oops = true
  1141. con:disconnect()
  1142. end
  1143. end)
  1144. local tors = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1145. rope:SetPrimaryPartCFrame(tors.CFrame)
  1146. local cf = tors.CFrame *CFrame.new(0,3,0) *CFrame.Angles(math.rad(-25),0,0)
  1147. oops = false
  1148. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1149. local oldws = hum.WalkSpeed
  1150. for i = 1, 550 do
  1151. hum.WalkSpeed = 0
  1152. if i == 100 then
  1153. soundeffect(soundlist.One, 1, 1, char.Torso)
  1154. end
  1155. if i == 200 then
  1156. soundeffect(soundlist.Two, 1, 1, char.Torso)
  1157. end
  1158. if i == 300 then
  1159. soundeffect(soundlist.Three, 1, 1, char.Torso)
  1160. end
  1161. if i == 400 then
  1162. soundeffect(soundlist.Four, 1, 1, char.Torso)
  1163. end
  1164. if i == 500 then
  1165. soundeffect(soundlist.Five, 1, 1, char.Torso)
  1166. end
  1167. rope:SetPrimaryPartCFrame(cf *CFrame.Angles(math.rad(-3.6),0,0))
  1168. cf = rope.PrimaryPart.CFrame
  1169. if oops then
  1170. break
  1171. end
  1172. swait()
  1173. end
  1174. if oops then
  1175. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  1176. local jpow = hum.JumpPower
  1177. hum.JumpPower = 0
  1178. soundeffect(soundlist.Oops, 1, 1, char.Torso, {ForceWait = true})
  1179. hum.JumpPower = jpow
  1180. play()
  1181. end
  1182. hum.WalkSpeed = oldws
  1183. end
  1184. play()
  1185. humanoid.WalkSpeed = 30
  1186. setrope(1)
  1187. spawn(function()
  1188. soundeffect(soundlist.Wow, 1, 1, char.Torso, {ForceWait = false})
  1189. attacking = false
  1190. end)
  1191. end
  1192. end)
  1193. if settings.CustomAnim or true then
  1194. if char:FindFirstChild("Animate") then
  1195. char.Animate:Destroy()
  1196. end
  1197. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  1198. track:Stop()
  1199. end
  1200. humanoid.Running:connect(function(ws)
  1201. movespeed = ws
  1202. end)
  1203. end
  1204.  
  1205. spawn(function()
  1206. repeat swait()
  1207. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  1208. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  1209. local tvel = rootpart.Velocity
  1210. if air and tvel.Y > 0 then
  1211. animpose = "Jump"
  1212. end
  1213. if air and tvel.Y < 0 then
  1214. animpose = "Fall"
  1215. end
  1216. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  1217. animpose = "Walking"
  1218. end
  1219. if not air and animpose == "Walking" and movespeed > 16 then
  1220. animpose = "Walking"--or Running
  1221. end
  1222. if not air and movespeed == 0 then
  1223. animpose = "Idle"
  1224. end
  1225. until not settings.CustomAnim
  1226. end)
  1227. for i,v in pairs(char:GetDescendants()) do
  1228. pcall(function()
  1229. v.Transparency = 1
  1230. end)
  1231. end
  1232.  
  1233. local change = 5
  1234. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  1235. while swait() and settings.CustomAnim do
  1236. local num = tick()*change
  1237. if animpose == "Walking" then
  1238. end
  1239. if animpose == "Fall" then
  1240. end
  1241. if animpose == "Idle" then
  1242. end
  1243. if animpose == "Jump" then
  1244. end
  1245. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement