Advertisement
DaOMEGAa32

fe playtime

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