Advertisement
MESCRIPT

playtime

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