Advertisement
EdgyHedgehog

Playtime Fe

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