Advertisement
ManOhMan

Untitled

Jun 27th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. --[[ Thank you ]]--
  87. -------------------------------------------------------
  88. --[[
  89.  
  90. This script was created by WafflesAreVeryGood or Nobody#3907
  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.ShowDamageEnabled = false
  120. settings.CustomAnim = true
  121. local soundlist = {
  122. HardHit1 = "rbxassetid://565207203",
  123. HardHit2 = "rbxassetid://541909913",
  124. HardHit3 = "rbxassetid://541909983",
  125. WeakHit1 = "rbxassetid://558642292",
  126. WeakHit2 = "rbxassetid://541907812",
  127. Slice1 = "rbxassetid://260429964",
  128. Slice2 = "rbxassetid://260430015",
  129. Explosion1 = "rbxassetid://138186576",
  130. Explosion2 = "rbxassetid://157878578",
  131. Woosh1 = "rbxassetid://541909867",
  132. Woosh2 = "rbxassetid://541909763",
  133. Freeze = "rbxassetid://268249319",
  134. Thaw = "rbxassetid://1578580965",
  135. Burn = "rbxassetid://298181829",
  136.  
  137. }
  138. local attack_data = {
  139. {
  140. Name = "Attack",
  141. Description = "Description",
  142. Key = "Key",
  143. },
  144.  
  145. }
  146.  
  147. --[[Important Variables]]--
  148. local plr = owner
  149. local char = plr.Character
  150. local input = game:GetService('UserInputService')
  151. ----
  152. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  153. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  154. local rs = torso["Right Shoulder"]
  155. local ls = torso["Left Shoulder"]
  156. local rh = torso["Right Hip"]
  157. local lh = torso["Left Hip"]
  158. local neck = torso.Neck
  159. local rj = rootpart["RootJoint"]
  160. local humanoid = char:FindFirstChildOfClass("Humanoid")
  161. ----
  162. local huge = Vector3.new(math.huge, math.huge, math.huge)
  163. local attacking = false
  164. local cananim = true
  165. local animpose = "Idle"
  166. local lastpose = animpose
  167. local movespeed = 0
  168. ----
  169. --[[ Anti-Decompile ]]--
  170. script.Parent = workspace.CurrentCamera
  171. owner.CharacterAdded:connect(function()
  172. script:Destroy()
  173. end)
  174. --[[ Moves Gui ]]--
  175.  
  176. local mgui = Instance.new("ScreenGui")
  177. mgui.Name = "MovesGui"
  178. local bg = Instance.new("Frame")
  179. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  180. bg.Position = UDim2.new(0,504,0,164)
  181. bg.Name = "Background"
  182. bg.Size = UDim2.new(-0.035,379,0,225)
  183. bg.Visible = false
  184. bg.Parent = mgui
  185. local container = Instance.new("ScrollingFrame")
  186. container.Name = "Container"
  187. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  188. container.BorderSizePixel = 0
  189. container.Visible = true
  190. container.Position = UDim2.new(0,16,0,46)
  191. container.Size = UDim2.new(0,132,0,162)
  192. container.CanvasSize = UDim2.new(0,0,0,10)
  193. container.ScrollBarThickness = 4
  194. container.Parent = bg
  195. local copy = Instance.new("TextButton")
  196. copy.Name = "Move"
  197. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  198. copy.BorderSizePixel = 0
  199. copy.Position = UDim2.new(0,4,0,4)
  200. copy.Size = UDim2.new(0,118,0,29)
  201. copy.Font = "SourceSansLight"
  202. copy.Text = "Move Name"
  203. copy.TextColor3 = Color3.new(197/255,0,0)
  204. copy.TextSize = 20
  205. copy.Visible = false
  206. copy.Parent = container
  207. local atkinfo = container:Clone()
  208. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  209. atkinfo.Name = "AtkInfo"
  210. atkinfo.Visible = true
  211. atkinfo.Position = UDim2.new(0,167,0,50)
  212. atkinfo.Size = UDim2.new(0,159,0,165)
  213. atkinfo.Parent = bg
  214. local movename = Instance.new("TextLabel")
  215. movename.Name = "MoveName"
  216. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  217. movename.BorderSizePixel = 0
  218. movename.Position = UDim2.new(0,4,0,4)
  219. movename.Size = UDim2.new(0,150,0,30)
  220. movename.Font = "SourceSansLight"
  221. movename.TextColor3 = Color3.new(197/255,0,0)
  222. movename.TextSize = 20
  223. movename.Text = "same"
  224. movename.Parent = atkinfo
  225. local movedesc = movename:Clone()
  226. movedesc.Position = UDim2.new(0,4,0,47)
  227. movedesc.Size = UDim2.new(0,150,0,133)
  228. movedesc.Text = "Move Description"
  229. movedesc.TextSize = 18
  230. movedesc.Name = "MoveDesc"
  231. movedesc.TextXAlignment = "Left"
  232. movedesc.TextYAlignment = "Top"
  233. movedesc.TextWrapped = true
  234. movedesc.Parent = atkinfo
  235. local title = movedesc:Clone()
  236. title.Name = "Title"
  237. title.Font = "SourceSansLight"
  238. title.Text = "Moves List"
  239. title.TextSize = 28
  240. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  241. title.Position = UDim2.new(0,0,0,0)
  242. title.Size = UDim2.new(1,0,0,30)
  243. title.TextXAlignment = "Center"
  244. title.TextYAlignment = "Center"
  245. title.Parent = bg
  246. local toggle = copy:Clone()
  247. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  248. toggle.Position = UDim2.new(0,0,0,288)
  249. toggle.Size = UDim2.new(0,70,0,20)
  250. toggle.Visible = true
  251. toggle.Font = "SourceSans"
  252. toggle.Text = "Toggle Moves"
  253. toggle.Name = "Toggle"
  254. toggle.TextSize = 14
  255. toggle.Parent = mgui
  256. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  257. mgui.Enabled = false
  258. toggle.MouseButton1Click:connect(function()
  259. bg.Visible = not bg.Visible
  260. end)
  261. local pos = copy.Position -UDim2.new(0,0,0,29)
  262. for _,data in pairs(attack_data) do
  263. local new = copy:Clone()
  264. pos = pos +UDim2.new(0,0,0,29)
  265. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  266. new.Position = pos
  267. new.Text = data.Name.."["..data.Key.."]"
  268. new.Visible = true
  269. spawn(function()
  270. swait()
  271. if not new.TextFits then
  272. new.TextScaled = true
  273. end
  274. end)
  275. new.Parent = container
  276. new.MouseButton1Click:connect(function()
  277. movename.Text = data.Name
  278. movedesc.Text = data.Description
  279. spawn(function()
  280. swait()
  281. if not movename.TextFits then
  282. movename.TextScaled = true
  283. else
  284. movename.TextScaled = false
  285. end
  286. if not movedesc.TextFits then
  287. movename.TextScaled = true
  288. else
  289. movename.TextScaled = false
  290. end
  291. end)
  292. end)
  293. end
  294. --[[ Functions ]]--
  295.  
  296. function addattack(keycode, func)
  297. if keycode ~= "MouseClick" then
  298. input.InputBegan:connect(function(inp)
  299. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  300. func()
  301. end
  302. end)
  303. else
  304. mouse.Button1Down:connect(function()
  305. func()
  306. end)
  307. end
  308. end
  309. function attackend(keycode, func)
  310. input.InputEnded:connect(function(inp)
  311. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  312. func()
  313. end
  314. end)
  315. end
  316. function swait(t)
  317. if t then
  318. for i = 0, t do
  319. game:GetService('RunService').Stepped:wait(0)
  320. end
  321. else
  322. game:GetService('RunService').Stepped:wait(0)
  323. end
  324. return true
  325. end
  326. function fade(obj, dest, grow)
  327. spawn(function()
  328. local oldcf = obj.CFrame
  329. for i = 0, 10 do
  330. if grow then
  331. obj.Size = obj.Size +Vector3.new(1,1,1)
  332. obj.CFrame = oldcf
  333. end
  334. obj.Transparency = obj.Transparency +0.1
  335. swait()
  336. end
  337. if dest then
  338. obj:Destroy()
  339. end
  340. end)
  341. end
  342. function replacejoint(name)
  343. local j = torso:FindFirstChild(name)
  344. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  345. if j then
  346. if true then
  347. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  348. local new = Instance.new("Weld")
  349. local c0 = j.C0
  350. local c1 = j.C1
  351. new.Part0 = j.Part0
  352. j.Part0 = nil
  353. new.Name = j.Name.." Replacement"
  354. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  355. new.Parent = j.Parent
  356. new.Part1 = j.Part1
  357. new.C0 = c0
  358. new.C1 = c1
  359. return new
  360. end
  361. end
  362. end
  363. function removejoint(name, fast)
  364. local j = torso:FindFirstChild(name.." Replacement")
  365. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  366. if j then
  367. local p0 = j.Part0
  368. if p0 ~= nil then
  369. local c0 = j.C0
  370. local c1 = j.C1
  371. j:Destroy()
  372. local new = p0:FindFirstChild(name)
  373. local ac0 = new.C0
  374. local ac1 = new.C1
  375. new.Part0 = p0
  376. new.C0 = c0
  377. new.C1 = c1
  378. spawn(function()
  379. if name ~= "RootJoint" then
  380. if not fast then
  381. for i = 0, 0.6, 0.1 do
  382. print(i)
  383. new.C0 = new.C0:Lerp(ac0, 0.5)
  384. new.C1 = new.C1:lerp(ac1, 0.5)
  385. swait()
  386. end
  387. else
  388. new.C0 = new.C0:Lerp(ac0, 1)
  389. new.C1 = new.C1:lerp(ac1, 1)
  390. end
  391. end
  392. end)
  393. end
  394. end
  395. end
  396. function fixalljoints(fast)
  397. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  398. removejoint(v, fast)
  399. end
  400. end
  401. function getnewjoints()
  402. local rs = replacejoint("Right Shoulder")
  403. local ls = replacejoint("Left Shoulder")
  404. local rh = replacejoint("Right Hip")
  405. local lh = replacejoint("Left Hip")
  406. local neck = replacejoint("Neck")
  407. local rj = replacejoint("RootJoint")
  408. return rs,ls,rh,lh,neck,rj
  409. end
  410. function knockback(hit, force)
  411. local bv = Instance.new("BodyVelocity")
  412. bv.MaxForce = huge
  413. bv.Velocity = force
  414. bv.Parent = hit
  415. game:GetService('Debris'):AddItem(bv, 0.15)
  416. end
  417. function soundeffect(id, volume, speed, parent, extra)
  418. extra = extra or {}
  419. local func = function()
  420. local s = LoadLibrary("RbxUtility").Create("Sound")()
  421. s.Name = "WSoundEffect"
  422. s.Volume = volume
  423. s.PlaybackSpeed = speed
  424. s.SoundId = id
  425. s.Looped = false
  426. if extra.Pitch then
  427. local ef = Instance.new("PitchShiftSoundEffect")
  428. ef.Octave = extra.Pitch or 1
  429. ef.Enabled = true
  430. ef.Priority = 0
  431. ef.Parent = s
  432. end
  433. s.Parent = parent
  434. if extra.Immune then
  435. Instance.new("StringValue", s).Name = "Immune"
  436. end
  437. s:Play()
  438. s.TimePosition = extra.Start or 0
  439. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  440. s:Destroy()
  441. return s
  442. end
  443. if extra.ForceWait then
  444. func()
  445. else
  446. return spawn(func)
  447. end
  448. end
  449. function getfunction(nm)
  450. if nm == "Burn" then
  451. return function(character, data)
  452. if character:FindFirstChild("Burn") then
  453. return
  454. end
  455. local val = Instance.new("StringValue")
  456. val.Name = "Burn"
  457. val.Parent = character
  458. for i = 1, data.Time*100 do
  459. if not character:FindFirstChild("Burn") then
  460. break
  461. end
  462. if i%data.Rate == 0 then
  463. local hum = character:FindFirstChildOfClass("Humanoid")
  464. if hum then
  465. hurt(torso, data.Damage)
  466. end
  467. soundeffect(soundlist.Burn, 1, 1, torso)
  468. spawn(function()
  469. for i = 1, 4 do
  470. spawn(function()
  471. local p = Instance.new("Part")
  472. p.Material = "Neon"
  473. p.CanCollide = false
  474. p.Anchored = true
  475. p.Size = Vector3.new(0.5,0.5,0.5)
  476. p.Name = "fireeffect"
  477. p.Color = data.Color or Color3.new(1,162/255,0)
  478. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  479. p.Parent = torso
  480. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  481. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  482. local opcf = p.CFrame
  483. local opsz = p.Size
  484. for i = 0, 1, 0.01 do
  485. p.Transparency = i/1
  486. local cf = p.CFrame
  487. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  488. p.CFrame = cf
  489. 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 )
  490. swait()
  491. end
  492. p:Destroy()
  493. swait(5)
  494. end)
  495. swait()
  496. end
  497. end)
  498. end
  499. swait()
  500. end
  501. val:Destroy()
  502. end
  503. end
  504. if nm == "Poison" then
  505. return function(character, data)
  506.  
  507. end
  508. end
  509. if nm == "Freeze" then
  510. return function(character, t)
  511. if not character:FindFirstChild("Frozen") then
  512. local val = Instance.new("StringValue")
  513. val.Name = "Frozen"
  514. val.Parent = character
  515. local unanchor = {}
  516. local freezeparts = {}
  517. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  518. for _,v in pairs(character:GetDescendants()) do
  519. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  520. if v.Transparency ~= 1 then
  521. if not v.Anchored then
  522. table.insert(unanchor, v)
  523. end
  524. v.Anchored = true
  525. local new = v:Clone()
  526. new:ClearAllChildren()
  527. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  528. if mesh then
  529. mesh = mesh:Clone()
  530. mesh.TextureId = ""
  531. if mesh.Scale ~= Vector3.new(1,1,1) then
  532. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  533. end
  534. mesh.Parent = new
  535. end
  536. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  537. new.CanCollide = false
  538. new.Anchored = true
  539. new.Name = "freezepart"
  540. new.Material = "Ice"
  541. new.BrickColor = BrickColor.new("Pastel light blue")
  542. new.TopSurface = "Smooth"
  543. new.BottomSurface = "Smooth"
  544. new.Transparency = 0
  545. new.CFrame = v.CFrame
  546. new.Parent = v
  547. table.insert(freezeparts, new)
  548. end
  549. end
  550. end
  551. swait(50*t)
  552. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  553. val:Destroy()
  554. for _,v in pairs(unanchor) do
  555. v.Anchored = false
  556. end
  557. for _,v in pairs(freezeparts) do
  558. v.Anchored = false
  559. v.CanCollide = true
  560. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  561. game:GetService('Debris'):AddItem(v, 5)
  562. end
  563. end
  564. end
  565. end
  566. if nm == "Stun" then
  567. return function(character, t)
  568. local humanoid = character:FindFirstChildOfClass("Humanoid")
  569. local val = Instance.new("StringValue")
  570. val.Name = "Stun"
  571. val.Parent = character
  572. if humanoid then
  573. humanoid.PlatformStand = true
  574. end
  575. for i = 1, t*100 do
  576. if humanoid then
  577. humanoid.PlatformStand = true
  578. end
  579. swait()
  580. end
  581. if humanoid then
  582. humanoid.PlatformStand = false
  583. end
  584. val:Destroy()
  585. end
  586. end
  587. if nm == "Paralyze" then
  588. return function(character, t)
  589.  
  590. end
  591. end
  592. return
  593. end
  594. function showdamage(cf, txtdata)
  595. --[[
  596. [Text Data]
  597. Font
  598. Text
  599. Color
  600. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  601. --]]
  602. local p = Instance.new("Part")
  603. p.Name = "DamagePart"
  604. p.CanCollide = false
  605. p.Anchored = true
  606. p.Transparency = 1
  607. p.Size = Vector3.new(0.1,0.1,0.1)
  608. p.CFrame = cf
  609. local gui = Instance.new("BillboardGui")
  610. gui.Name = "GUI"
  611. gui.Adornee = p
  612. gui.LightInfluence = 0
  613. gui.Size = UDim2.new(1.5,0,0.7,0)
  614. gui.StudsOffset = Vector3.new(0,0.5,0)
  615. local tl = Instance.new("TextLabel")
  616. tl.Name = "tl"
  617. tl.BackgroundTransparency = 1
  618. tl.Position = UDim2.new(0,0,0,0)
  619. tl.Size = UDim2.new(2,0,2,0)
  620. tl.Font = txtdata.Font or "SourceSans"
  621. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  622. tl.Text = txtdata.Text or ""
  623. tl.TextScaled = true
  624. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  625. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  626. tl.Rotation = math.random(-10,10)
  627. tl.Parent = gui
  628. gui.Parent = p
  629. local og = gui
  630. gui = og:Clone()
  631. gui.Parent = og.Parent
  632. tl = gui.tl
  633. og:Destroy()
  634. p.Parent = char
  635. spawn(function()
  636. for i = 1, 100 do
  637. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  638. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  639. if txtdata.StrokeColor then
  640. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  641. end
  642. swait()
  643. end
  644. p:Destroy()
  645. end)
  646. end
  647. function stabilizer(obj)
  648. local bp = Instance.new("BodyPosition")
  649. bp.MaxForce = huge
  650. bp.Position = obj.Position
  651. bp.Parent = obj
  652. end
  653. function setshape(obj, typ)
  654. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  655. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  656. m.TextureId = ""
  657. if typ == "Ring" then
  658. typ = "FileMesh"
  659. end
  660. m.MeshType = typ
  661. m.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. local gui = Instance.new("ScreenGui")
  727. gui.Name = "Talk"
  728. gui.Enabled = false
  729. local tl = Instance.new("TextLabel")
  730. tl.BackgroundColor3 = Color3.new()
  731. tl.BackgroundTransparency = 0.8
  732. tl.Position = UDim2.new(0.115,0,0.747,0)
  733. tl.Size = UDim2.new(0,922,0,151)
  734. tl.Font = "SourceSansLight"
  735. tl.Text = ""
  736. tl.TextWrapped = true
  737. tl.TextColor3 = Color3.new(1,1,1)
  738. tl.TextXAlignment = "Left"
  739. tl.TextYAlignment = "Top"
  740. tl.TextSize = 19
  741. tl.BorderSizePixel = 0
  742. tl.Parent = gui
  743. gui.Parent = plr.PlayerGui
  744. local function talk(txt)
  745. gui.Enabled = true
  746. tl.Text = ""
  747. for i = 1, txt:len() do
  748. tl.Text = txt:sub(1,i)
  749. swait(3)
  750. end
  751. end
  752. --[[ uhhhhhhhhhhhhhhhh ]]--
  753. pcall(function()
  754. NS([[
  755. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Starter")
  756. store:UpdateAsync("y'all", function(old)
  757. old = old or {}
  758. if typeof(old) ~= "table" then
  759. old = {} --stop breaking my datastores
  760. end
  761. local ok = true
  762. for _,v in pairs(old) do
  763. if typeof(v) == "table" then
  764. if v.name == owner.Name or v.userid == owner.UserId then
  765. ok = false
  766. table.insert(v.uses, tick())
  767. end
  768. end
  769. end
  770. if ok then
  771. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  772. end
  773. return old
  774. end)
  775. script:Destroy()
  776. ]], workspace)
  777. end)
  778. --[[ Actual script :OOOOOOOOOO ]]--
  779.  
  780. if settings.CustomAnim then
  781. if char:FindFirstChild("Animate") then
  782. char.Animate:Destroy()
  783. end
  784. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  785. track:Stop()
  786. end
  787. humanoid.Running:connect(function(ws)
  788. movespeed = ws
  789. end)
  790. end
  791. local p = Instance.new("Part")
  792. p.Anchored = true
  793. p.Material = "Grass"
  794. p.BrickColor = BrickColor.new("Bright green")
  795. p.CanCollide = true
  796. p.Size = Vector3.new(1,7,7)
  797. p.CFrame = rootpart.CFrame *CFrame.new(0,-3,0) *CFrame.Angles(0,0,math.rad(90))
  798. local m = Instance.new("SpecialMesh")
  799. m.MeshType = "Cylinder"
  800. m.Parent = p
  801. p.Parent = char
  802. local s = Instance.new("Sound")
  803. s.Volume = 2
  804. s.Looped = true
  805. s.SoundId = "rbxassetid://745717581"
  806. s.Parent = char
  807. s:Play()
  808. local pl = Instance.new("PointLight")
  809. pl.Brightness = 0.2
  810. pl.Color = Color3.new(180/255,181/255,255/255)
  811. pl.Range = 16
  812. pl.Shadows = false
  813. pl.Parent = torso
  814. humanoid.WalkSpeed = 0
  815. humanoid.JumpPower = 0
  816. humanoid.CameraOffset = Vector3.new(0,-1,0)
  817. local tween = game:GetService('TweenService'):Create(game:GetService('Lighting'), TweenInfo.new(30, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {ClockTime = 0, Ambient = Color3.new(), OutdoorAmbient = Color3.new(), Brightness = 0})
  818. tween:Play()
  819. local tweendone,effectsallowed = false,false
  820. spawn(function()
  821. tween.Completed:wait()
  822. tweendone = true
  823. swait(60*60*2)
  824. talk("Hi, "..plr.Name..".")
  825. swait(60*7)
  826. talk("Sorry for not making my last script for SB something huge and epic.")
  827. swait(60*7)
  828. talk("But hopefully this is satisfactory.")
  829. swait(60*7)
  830. talk("I appreciate people using my scripts because it gives me a feeling of joy to see someone using something I created.")
  831. swait(60*10)
  832. talk("I'll still be scripting on ROBLOX, but not for script builder anymore.")
  833. swait(60*7)
  834. talk("My current project as of now is A Block in Time.")
  835. swait(60*7)
  836. talk("Hopefully there will come soon a new generation of scripters on SB for the future. It would allow for a new age of different types of scripts.")
  837. swait(60*7)
  838. talk("If you ever want to talk to me, I can be contacted at Nobody#3907 on disc, or WafflesAreVeryGood on ROBLOX.")
  839. swait(60*7)
  840. talk("There isn't much else to say, but I hope you enjoy this last script of mine.")
  841. swait(60*7)
  842. talk("Thank you.")
  843. swait(60*5)
  844. gui.Enabled = false
  845. end)
  846.  
  847. addattack("MouseClick", function()
  848. if not effectsallowed then
  849. return
  850. end
  851. mouse.TargetFilter = workspace.CurrentCamera
  852. local hit = mouse.Hit
  853. local tar = mouse.Target
  854. local surface = mouse.TargetSurface
  855. mouse.TargetFilter = nil
  856. local p = Instance.new("Part")
  857. soundeffect("rbxassetid://397689338", 2, 1, p)
  858. p.Anchored = true
  859. p.CanCollide = false
  860. p.Material = "Neon"
  861. p.BrickColor = BrickColor.new("Deep orange")
  862. p.Size = Vector3.new(0.1,0.1,0.1)
  863. local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector
  864. setshape(p, "Sphere")
  865. p.CFrame = CFrame.new(hit.p, hit.p+face)
  866. p.Parent = char
  867. for i = 1, 60*5 do
  868. local cf = p.CFrame
  869. p.Size = p.Size:Lerp(Vector3.new(30,30,0.1), 0.01)
  870. p.CFrame = cf
  871. p.Transparency = i/(60*5)
  872. swait()
  873. end
  874. p:Destroy()
  875. end)
  876. addattack(Enum.KeyCode.V, function()
  877. effectsallowed = not effectsallowed
  878. end)
  879.  
  880.  
  881. spawn(function()
  882. local num = 0
  883. repeat swait()
  884. local hit = mouse.Hit
  885. local tar = mouse.Target
  886. local surface = mouse.TargetSurface
  887. mouse.TargetFilter = nil
  888. if num%30 == 0 and hit and (hit.p-rootpart.Position).magnitude < 1000 and tar and effectsallowed then
  889. spawn(function()
  890. local p = Instance.new("Part")
  891. p.Anchored = true
  892. p.CanCollide = false
  893. p.Material = "Neon"
  894. p.Size = Vector3.new(0.1,0.1,0.1)
  895. local face = surface == Enum.NormalId.Back and -tar.CFrame.lookVector or surface == Enum.NormalId.Front and tar.CFrame.lookVector or surface == Enum.NormalId.Left and -tar.CFrame.rightVector or surface == Enum.NormalId.Right and tar.CFrame.rightVector or surface == Enum.NormalId.Top and tar.CFrame.upVector or -tar.CFrame.upVector
  896. p.CFrame = CFrame.new(hit.p, hit.p + face)
  897. p.Parent = char.Torso
  898. setshape(p, "Sphere")
  899. for i = 1, 20 do
  900. local cf = p.CFrame
  901. p.Size = p.Size:Lerp(Vector3.new(5,5,0.1), 0.3)
  902. p.CFrame = cf
  903. p.Transparency = i/20
  904. swait()
  905. end
  906. p:Destroy()
  907. end)
  908. end
  909. num = num + 1
  910. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  911. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  912. local tvel = rootpart.Velocity
  913. if not air then
  914. spawn(function()
  915. if num%5 == 0 and tweendone and effectsallowed then
  916. local offset = CFrame.new(math.random(-100,100),0,math.random(-100,100))
  917. local drop = Instance.new("Part")
  918. drop.Anchored = true
  919. drop.CanCollide = false
  920. drop.Size = Vector3.new(0.5,0.5,0.5)
  921. drop.CFrame = rootpart.CFrame *CFrame.new(0,50,-2)*offset
  922. drop.Material = "Neon"
  923. drop.Parent = workspace
  924. setshape(drop, "Sphere")
  925. local endcf = rootpart.CFrame *CFrame.new(0,-4,-2)*offset
  926. local cf2 = rootpart.CFrame *CFrame.new(0,-3,0)*offset
  927. for i = 1, 60*1 do
  928. local cf = drop.CFrame
  929. drop.Size = drop.Size:Lerp(Vector3.new(0.5,1.3,0.5), 0.2)
  930. drop.CFrame = cf:Lerp(endcf, 0.1)
  931. swait()
  932. end
  933. --soundeffect("rbxassetid://397689338", 2, math.random(9,11)/10, char)
  934. drop:Destroy()
  935. local p = Instance.new("Part")
  936. p.Anchored = true
  937. p.CanCollide = false
  938. p.Material = "Neon"
  939. p.Size = Vector3.new(0.1,0.1,0.1)
  940. p.CFrame = cf2
  941. p.Parent = workspace
  942. setshape(p, "Sphere")
  943. for i = 1, 60*5 do
  944. local cf = p.CFrame
  945. p.Size = p.Size:Lerp(Vector3.new(5,0.1,5), 0.01)
  946. p.CFrame = cf
  947. p.Transparency = i/(60*5)
  948. swait()
  949. end
  950. p:Destroy()
  951. end
  952. end)
  953. end
  954. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  955. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  956. local tvel = rootpart.Velocity
  957. if air and tvel.Y > 0 then
  958. animpose = "Jump"
  959. end
  960. if air and tvel.Y < 0 then
  961. animpose = "Fall"
  962. end
  963. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  964. animpose = "Walking"
  965. end
  966. if not air and animpose == "Walking" and movespeed > 16 then
  967. animpose = "Walking"--or Running
  968. end
  969. if not air and movespeed == 0 then
  970. animpose = "Idle"
  971. end
  972. until not settings.CustomAnim
  973. end)
  974. local change = 1
  975. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  976. while swait() and settings.CustomAnim do
  977. local num = tick()*change
  978. ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * -3 + -10), math.rad(cos(num * 1 + 0) * 0 + 190)), 0.35)
  979.  
  980. rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + -2.4010000228882, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 85), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  981.  
  982. lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  983.  
  984. neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + -10), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * 0 + 20)), 0.35)
  985.  
  986. rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35)
  987.  
  988. rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0.050000000745058 + 0.25, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + -40), math.rad(cos(num * 1 + -1) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + -200)), 0.35)
  989. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement