yoinkydoodlewastaken

rain

Jun 19th, 2019
79
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").Rohan_Kishiba
  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.  
  87. --[[ Thank you ]]--
  88. -------------------------------------------------------
  89. --[[
  90.  
  91. This script was created by WafflesAreVeryGood or Nobody#3907
  92.  
  93. --]]
  94. -------------------------------------------------------
  95. --[[ Reference ]]--
  96. --[[
  97. Burn Function
  98. hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
  99.  
  100. Freeze Function
  101. hurt(char.Head, 0, "Freeze", {char, 1})
  102.  
  103. Stun Function
  104. hurt(char.Head, 0, "Stun", {char, 0.2})
  105. --]]
  106. -------------------------------------------------------
  107. math.randomseed(tick())
  108. print("You are using a script created by WafflesAreVeryGood!")
  109. warn("--------Global Message--------")
  110. warn(game:GetService("MarketplaceService"):GetProductInfo(1720721621).Description)
  111. warn("------------------------------")
  112. --[[Changeable Variables]]--
  113. local settings = {}
  114. --ShowDamage settings
  115. settings.Damage = {
  116. Color = nil,
  117. StrokeColor = nil,
  118. Font = nil,
  119. }
  120. settings.ShowDamageEnabled = false
  121. settings.CustomAnim = true
  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.  
  138. }
  139. local attack_data = {
  140. {
  141. Name = "Attack",
  142. Description = "Description",
  143. Key = "Key",
  144. },
  145.  
  146. }
  147.  
  148. --[[Important Variables]]--
  149. local plr = game:GetService('Players').Rohan_Kishiba
  150. local char = plr.Character
  151. local mouse = plr:GetMouse()
  152. local input = game:GetService('UserInputService')
  153. ----
  154. local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
  155. local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
  156. local rs = torso["Right Shoulder"]
  157. local ls = torso["Left Shoulder"]
  158. local rh = torso["Right Hip"]
  159. local lh = torso["Left Hip"]
  160. local neck = torso.Neck
  161. local rj = rootpart["RootJoint"]
  162. local humanoid = char:FindFirstChildOfClass("Humanoid")
  163. ----
  164. local huge = Vector3.new(math.huge, math.huge, math.huge)
  165. local attacking = false
  166. local cananim = true
  167. local animpose = "Idle"
  168. local lastpose = animpose
  169. local movespeed = 0
  170. ----
  171. --[[ Anti-Decompile ]]--
  172. script.Parent = workspace.CurrentCamera
  173. game:GetService('Players').Rohan_Kishiba.CharacterAdded:connect(function()
  174. script:Destroy()
  175. end)
  176. --[[ Moves Gui ]]--
  177.  
  178. local mgui = Instance.new("ScreenGui")
  179. mgui.Name = "MovesGui"
  180. local bg = Instance.new("Frame")
  181. bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  182. bg.Position = UDim2.new(0,504,0,164)
  183. bg.Name = "Background"
  184. bg.Size = UDim2.new(-0.035,379,0,225)
  185. bg.Visible = false
  186. bg.Parent = mgui
  187. local container = Instance.new("ScrollingFrame")
  188. container.Name = "Container"
  189. container.BackgroundColor3 = Color3.new(70/255,70/255,70/255)
  190. container.BorderSizePixel = 0
  191. container.Visible = true
  192. container.Position = UDim2.new(0,16,0,46)
  193. container.Size = UDim2.new(0,132,0,162)
  194. container.CanvasSize = UDim2.new(0,0,0,10)
  195. container.ScrollBarThickness = 4
  196. container.Parent = bg
  197. local copy = Instance.new("TextButton")
  198. copy.Name = "Move"
  199. copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  200. copy.BorderSizePixel = 0
  201. copy.Position = UDim2.new(0,4,0,4)
  202. copy.Size = UDim2.new(0,118,0,29)
  203. copy.Font = "SourceSansLight"
  204. copy.Text = "Move Name"
  205. copy.TextColor3 = Color3.new(197/255,0,0)
  206. copy.TextSize = 20
  207. copy.Visible = false
  208. copy.Parent = container
  209. local atkinfo = container:Clone()
  210. for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end
  211. atkinfo.Name = "AtkInfo"
  212. atkinfo.Visible = true
  213. atkinfo.Position = UDim2.new(0,167,0,50)
  214. atkinfo.Size = UDim2.new(0,159,0,165)
  215. atkinfo.Parent = bg
  216. local movename = Instance.new("TextLabel")
  217. movename.Name = "MoveName"
  218. movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255)
  219. movename.BorderSizePixel = 0
  220. movename.Position = UDim2.new(0,4,0,4)
  221. movename.Size = UDim2.new(0,150,0,30)
  222. movename.Font = "SourceSansLight"
  223. movename.TextColor3 = Color3.new(197/255,0,0)
  224. movename.TextSize = 20
  225. movename.Text = "same"
  226. movename.Parent = atkinfo
  227. local movedesc = movename:Clone()
  228. movedesc.Position = UDim2.new(0,4,0,47)
  229. movedesc.Size = UDim2.new(0,150,0,133)
  230. movedesc.Text = "Move Description"
  231. movedesc.TextSize = 18
  232. movedesc.Name = "MoveDesc"
  233. movedesc.TextXAlignment = "Left"
  234. movedesc.TextYAlignment = "Top"
  235. movedesc.TextWrapped = true
  236. movedesc.Parent = atkinfo
  237. local title = movedesc:Clone()
  238. title.Name = "Title"
  239. title.Font = "SourceSansLight"
  240. title.Text = "Moves List"
  241. title.TextSize = 28
  242. title.BackgroundColor3 = Color3.new(36/255,36/255,36/255)
  243. title.Position = UDim2.new(0,0,0,0)
  244. title.Size = UDim2.new(1,0,0,30)
  245. title.TextXAlignment = "Center"
  246. title.TextYAlignment = "Center"
  247. title.Parent = bg
  248. local toggle = copy:Clone()
  249. toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255)
  250. toggle.Position = UDim2.new(0,0,0,288)
  251. toggle.Size = UDim2.new(0,70,0,20)
  252. toggle.Visible = true
  253. toggle.Font = "SourceSans"
  254. toggle.Text = "Toggle Moves"
  255. toggle.Name = "Toggle"
  256. toggle.TextSize = 14
  257. toggle.Parent = mgui
  258. mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
  259. mgui.Enabled = false
  260. toggle.MouseButton1Click:connect(function()
  261. bg.Visible = not bg.Visible
  262. end)
  263. local pos = copy.Position -UDim2.new(0,0,0,29)
  264. for _,data in pairs(attack_data) do
  265. local new = copy:Clone()
  266. pos = pos +UDim2.new(0,0,0,29)
  267. container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29)
  268. new.Position = pos
  269. new.Text = data.Name.."["..data.Key.."]"
  270. new.Visible = true
  271. spawn(function()
  272. swait()
  273. if not new.TextFits then
  274. new.TextScaled = true
  275. end
  276. end)
  277. new.Parent = container
  278. new.MouseButton1Click:connect(function()
  279. movename.Text = data.Name
  280. movedesc.Text = data.Description
  281. spawn(function()
  282. swait()
  283. if not movename.TextFits then
  284. movename.TextScaled = true
  285. else
  286. movename.TextScaled = false
  287. end
  288. if not movedesc.TextFits then
  289. movename.TextScaled = true
  290. else
  291. movename.TextScaled = false
  292. end
  293. end)
  294. end)
  295. end
  296. --[[ Functions ]]--
  297.  
  298. function addattack(keycode, func)
  299. if keycode ~= "MouseClick" then
  300. input.InputBegan:connect(function(inp)
  301. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  302. func()
  303. end
  304. end)
  305. else
  306. mouse.Button1Down:connect(function()
  307. func()
  308. end)
  309. end
  310. end
  311. function attackend(keycode, func)
  312. input.InputEnded:connect(function(inp)
  313. if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
  314. func()
  315. end
  316. end)
  317. end
  318. function swait(t)
  319. if t then
  320. for i = 0, t do
  321. game:GetService('RunService').Stepped:wait(0)
  322. end
  323. else
  324. game:GetService('RunService').Stepped:wait(0)
  325. end
  326. return true
  327. end
  328. function fade(obj, dest, grow)
  329. spawn(function()
  330. local oldcf = obj.CFrame
  331. for i = 0, 10 do
  332. if grow then
  333. obj.Size = obj.Size +Vector3.new(1,1,1)
  334. obj.CFrame = oldcf
  335. end
  336. obj.Transparency = obj.Transparency +0.1
  337. swait()
  338. end
  339. if dest then
  340. obj:Destroy()
  341. end
  342. end)
  343. end
  344. function replacejoint(name)
  345. local j = torso:FindFirstChild(name)
  346. if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
  347. if j then
  348. if true then
  349. local already = j.Parent:FindFirstChild(j.Name.." Replacement")
  350. local new = Instance.new("Weld")
  351. local c0 = j.C0
  352. local c1 = j.C1
  353. new.Part0 = j.Part0
  354. j.Part0 = nil
  355. new.Name = j.Name.." Replacement"
  356. if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
  357. new.Parent = j.Parent
  358. new.Part1 = j.Part1
  359. new.C0 = c0
  360. new.C1 = c1
  361. return new
  362. end
  363. end
  364. end
  365. function removejoint(name, fast)
  366. local j = torso:FindFirstChild(name.." Replacement")
  367. if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
  368. if j then
  369. local p0 = j.Part0
  370. if p0 ~= nil then
  371. local c0 = j.C0
  372. local c1 = j.C1
  373. j:Destroy()
  374. local new = p0:FindFirstChild(name)
  375. local ac0 = new.C0
  376. local ac1 = new.C1
  377. new.Part0 = p0
  378. new.C0 = c0
  379. new.C1 = c1
  380. spawn(function()
  381. if name ~= "RootJoint" then
  382. if not fast then
  383. for i = 0, 0.6, 0.1 do
  384. print(i)
  385. new.C0 = new.C0:Lerp(ac0, 0.5)
  386. new.C1 = new.C1:lerp(ac1, 0.5)
  387. swait()
  388. end
  389. else
  390. new.C0 = new.C0:Lerp(ac0, 1)
  391. new.C1 = new.C1:lerp(ac1, 1)
  392. end
  393. end
  394. end)
  395. end
  396. end
  397. end
  398. function fixalljoints(fast)
  399. for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
  400. removejoint(v, fast)
  401. end
  402. end
  403. function getnewjoints()
  404. local rs = replacejoint("Right Shoulder")
  405. local ls = replacejoint("Left Shoulder")
  406. local rh = replacejoint("Right Hip")
  407. local lh = replacejoint("Left Hip")
  408. local neck = replacejoint("Neck")
  409. local rj = replacejoint("RootJoint")
  410. return rs,ls,rh,lh,neck,rj
  411. end
  412. function knockback(hit, force)
  413. local bv = Instance.new("BodyVelocity")
  414. bv.MaxForce = huge
  415. bv.Velocity = force
  416. bv.Parent = hit
  417. game:GetService('Debris'):AddItem(bv, 0.15)
  418. end
  419. function soundeffect(id, volume, speed, parent, extra)
  420. extra = extra or {}
  421. local func = function()
  422. local s = LoadLibrary("RbxUtility").Create("Sound")()
  423. s.Name = "WSoundEffect"
  424. s.Volume = volume
  425. s.PlaybackSpeed = speed
  426. s.SoundId = id
  427. s.Looped = false
  428. if extra.Pitch then
  429. local ef = Instance.new("PitchShiftSoundEffect")
  430. ef.Octave = extra.Pitch or 1
  431. ef.Enabled = true
  432. ef.Priority = 0
  433. ef.Parent = s
  434. end
  435. s.Parent = parent
  436. if extra.Immune then
  437. Instance.new("StringValue", s).Name = "Immune"
  438. end
  439. s:Play()
  440. s.TimePosition = extra.Start or 0
  441. repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999)
  442. s:Destroy()
  443. return s
  444. end
  445. if extra.ForceWait then
  446. func()
  447. else
  448. return spawn(func)
  449. end
  450. end
  451. function getfunction(nm)
  452. if nm == "Burn" then
  453. return function(character, data)
  454. if character:FindFirstChild("Burn") then
  455. return
  456. end
  457. local val = Instance.new("StringValue")
  458. val.Name = "Burn"
  459. val.Parent = character
  460. for i = 1, data.Time*100 do
  461. if not character:FindFirstChild("Burn") then
  462. break
  463. end
  464. if i%data.Rate == 0 then
  465. local hum = character:FindFirstChildOfClass("Humanoid")
  466. if hum then
  467. hurt(torso, data.Damage)
  468. end
  469. soundeffect(soundlist.Burn, 1, 1, torso)
  470. spawn(function()
  471. for i = 1, 4 do
  472. spawn(function()
  473. local p = Instance.new("Part")
  474. p.Material = "Neon"
  475. p.CanCollide = false
  476. p.Anchored = true
  477. p.Size = Vector3.new(0.5,0.5,0.5)
  478. p.Name = "fireeffect"
  479. p.Color = data.Color or Color3.new(1,162/255,0)
  480. p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
  481. p.Parent = torso
  482. local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  483. local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset
  484. local opcf = p.CFrame
  485. local opsz = p.Size
  486. for i = 0, 1, 0.01 do
  487. p.Transparency = i/1
  488. local cf = p.CFrame
  489. p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1)
  490. p.CFrame = cf
  491. 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 )
  492. swait()
  493. end
  494. p:Destroy()
  495. swait(5)
  496. end)
  497. swait()
  498. end
  499. end)
  500. end
  501. swait()
  502. end
  503. val:Destroy()
  504. end
  505. end
  506. if nm == "Poison" then
  507. return function(character, data)
  508.  
  509. end
  510. end
  511. if nm == "Freeze" then
  512. return function(character, t)
  513. if not character:FindFirstChild("Frozen") then
  514. local val = Instance.new("StringValue")
  515. val.Name = "Frozen"
  516. val.Parent = character
  517. local unanchor = {}
  518. local freezeparts = {}
  519. soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  520. for _,v in pairs(character:GetDescendants()) do
  521. if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
  522. if v.Transparency ~= 1 then
  523. if not v.Anchored then
  524. table.insert(unanchor, v)
  525. end
  526. v.Anchored = true
  527. local new = v:Clone()
  528. new:ClearAllChildren()
  529. local mesh = v:FindFirstChildOfClass("SpecialMesh")
  530. if mesh then
  531. mesh = mesh:Clone()
  532. mesh.TextureId = ""
  533. if mesh.Scale ~= Vector3.new(1,1,1) then
  534. mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05)
  535. end
  536. mesh.Parent = new
  537. end
  538. new.Size = new.Size+Vector3.new(0.05,0.05,0.05)
  539. new.CanCollide = false
  540. new.Anchored = true
  541. new.Name = "freezepart"
  542. new.Material = "Ice"
  543. new.BrickColor = BrickColor.new("Pastel light blue")
  544. new.TopSurface = "Smooth"
  545. new.BottomSurface = "Smooth"
  546. new.Transparency = 0
  547. new.CFrame = v.CFrame
  548. new.Parent = v
  549. table.insert(freezeparts, new)
  550. end
  551. end
  552. end
  553. swait(50*t)
  554. soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
  555. val:Destroy()
  556. for _,v in pairs(unanchor) do
  557. v.Anchored = false
  558. end
  559. for _,v in pairs(freezeparts) do
  560. v.Anchored = false
  561. v.CanCollide = true
  562. v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25
  563. game:GetService('Debris'):AddItem(v, 5)
  564. end
  565. end
  566. end
  567. end
  568. if nm == "Stun" then
  569. return function(character, t)
  570. local humanoid = character:FindFirstChildOfClass("Humanoid")
  571. local val = Instance.new("StringValue")
  572. val.Name = "Stun"
  573. val.Parent = character
  574. if humanoid then
  575. humanoid.PlatformStand = true
  576. end
  577. for i = 1, t*100 do
  578. if humanoid then
  579. humanoid.PlatformStand = true
  580. end
  581. swait()
  582. end
  583. if humanoid then
  584. humanoid.PlatformStand = false
  585. end
  586. val:Destroy()
  587. end
  588. end
  589. if nm == "Paralyze" then
  590. return function(character, t)
  591.  
  592. end
  593. end
  594. return
  595. end
  596. function showdamage(cf, txtdata)
  597. --[[
  598. [Text Data]
  599. Font
  600. Text
  601. Color
  602. StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
  603. --]]
  604. local p = Instance.new("Part")
  605. p.Name = "DamagePart"
  606. p.CanCollide = false
  607. p.Anchored = true
  608. p.Transparency = 1
  609. p.Size = Vector3.new(0.1,0.1,0.1)
  610. p.CFrame = cf
  611. local gui = Instance.new("BillboardGui")
  612. gui.Name = "GUI"
  613. gui.Adornee = p
  614. gui.LightInfluence = 0
  615. gui.Size = UDim2.new(1.5,0,0.7,0)
  616. gui.StudsOffset = Vector3.new(0,0.5,0)
  617. local tl = Instance.new("TextLabel")
  618. tl.Name = "tl"
  619. tl.BackgroundTransparency = 1
  620. tl.Position = UDim2.new(0,0,0,0)
  621. tl.Size = UDim2.new(2,0,2,0)
  622. tl.Font = txtdata.Font or "SourceSans"
  623. tl.TextColor3 = txtdata.Color or Color3.new(1,0,0)
  624. tl.Text = txtdata.Text or ""
  625. tl.TextScaled = true
  626. tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new()
  627. tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1
  628. tl.Rotation = math.random(-10,10)
  629. tl.Parent = gui
  630. gui.Parent = p
  631. local og = gui
  632. gui = og:Clone()
  633. gui.Parent = og.Parent
  634. tl = gui.tl
  635. og:Destroy()
  636. p.Parent = char
  637. spawn(function()
  638. for i = 1, 100 do
  639. gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100)
  640. tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  641. if txtdata.StrokeColor then
  642. tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X
  643. end
  644. swait()
  645. end
  646. p:Destroy()
  647. end)
  648. end
  649. function stabilizer(obj)
  650. local bp = Instance.new("BodyPosition")
  651. bp.MaxForce = huge
  652. bp.Position = obj.Position
  653. bp.Parent = obj
  654. end
  655. function setshape(obj, typ)
  656. local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
  657. m.MeshId = typ == "Ring" and "rbxassetid://3270017" or ""
  658. m.TextureId = ""
  659. if typ == "Ring" then
  660. typ = "FileMesh"
  661. end
  662. m.MeshType = typ
  663. m.Parent = obj
  664. end
  665. function camshake(direction, intensity, duration)
  666. if direction:lower() == "inout" then
  667. workspace.CurrentCamera.FieldOfView = intensity
  668. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
  669. elseif direction:lower() == "left" then
  670. humanoid.CameraOffset = Vector3.new(intensity,0,0)
  671. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  672. elseif direction:lower() == "right" then
  673. humanoid.CameraOffset = Vector3.new(-intensity,0,0)
  674. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  675. elseif direction:lower() == "up" then
  676. humanoid.CameraOffset = Vector3.new(0,intensity,0)
  677. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  678. elseif direction:lower() == "down" then
  679. humanoid.CameraOffset = Vector3.new(0,-intensity,0)
  680. game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
  681. end
  682. end
  683. function hurt(hit, dmg, effect, args)
  684. --pcall(function()
  685. local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
  686. if hum then
  687. if hum.Parent ~= char or true then
  688. if typeof(dmg) == "table" then
  689. dmg = math.random(dmg[1], dmg[2])
  690. end
  691. hum.Health = hum.Health - dmg
  692. if settings.ShowDamageEnabled then
  693. local dmgdata = {
  694. Color = settings.Damage.Color,
  695. StrokeColor = settings.Damage.StrokeColor,
  696. Font = settings.Damage.Font,
  697. Text = dmg,
  698. }
  699. showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata)
  700. end
  701. if effect then
  702. if typeof(effect) == "function" then
  703. local s,m = pcall(effect, hit.CFrame)
  704. if not s then
  705. warn("Error in function: "..m or "unknown")
  706. end
  707. end
  708. if typeof(effect) == "string" then
  709. local func = getfunction(effect)
  710. if func then
  711. local s,m
  712. if args then
  713. s,m = pcall(func, unpack(args))
  714. else
  715. s,m = pcall(func)
  716. end
  717. if not s then
  718. warn("Error in function: "..m or "unknown")
  719. end
  720. end
  721. end
  722. end
  723. return true
  724. end
  725. end
  726. --end)
  727. end
  728. local gui = Instance.new("ScreenGui")
  729. gui.Name = "Talk"
  730. gui.Enabled = false
  731. local tl = Instance.new("TextLabel")
  732. tl.BackgroundColor3 = Color3.new()
  733. tl.BackgroundTransparency = 0.8
  734. tl.Position = UDim2.new(0.115,0,0.747,0)
  735. tl.Size = UDim2.new(0,922,0,151)
  736. tl.Font = "SourceSansLight"
  737. tl.Text = ""
  738. tl.TextWrapped = true
  739. tl.TextColor3 = Color3.new(1,1,1)
  740. tl.TextXAlignment = "Left"
  741. tl.TextYAlignment = "Top"
  742. tl.TextSize = 19
  743. tl.BorderSizePixel = 0
  744. tl.Parent = gui
  745. gui.Parent = plr.PlayerGui
  746. local function talk(txt)
  747. gui.Enabled = true
  748. tl.Text = ""
  749. for i = 1, txt:len() do
  750. tl.Text = txt:sub(1,i)
  751. swait(3)
  752. end
  753. end
  754. --[[ uhhhhhhhhhhhhhhhh ]]--
  755. pcall(function()
  756. NS([[
  757. local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Starter")
  758. store:UpdateAsync("y'all", function(old)
  759. old = old or {}
  760. if typeof(old) ~= "table" then
  761. old = {} --stop breaking my datastores
  762. end
  763. local ok = true
  764. for _,v in pairs(old) do
  765. if typeof(v) == "table" then
  766. if v.name == owner.Name or v.userid == owner.UserId then
  767. ok = false
  768. table.insert(v.uses, tick())
  769. end
  770. end
  771. end
  772. if ok then
  773. table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
  774. end
  775. return old
  776. end)
  777. script:Destroy()
  778. ]], workspace)
  779. end)
  780. --[[ Actual script :OOOOOOOOOO ]]--
  781.  
  782. if settings.CustomAnim then
  783. if char:FindFirstChild("Animate") then
  784. char.Animate:Destroy()
  785. end
  786. for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do
  787. track:Stop()
  788. end
  789. humanoid.Running:connect(function(ws)
  790. movespeed = ws
  791. end)
  792. end
  793. local p = Instance.new("Part")
  794. p.Anchored = true
  795. p.Material = "Grass"
  796. p.BrickColor = BrickColor.new("Bright green")
  797. p.CanCollide = true
  798. p.Size = Vector3.new(1,7,7)
  799. p.CFrame = rootpart.CFrame *CFrame.new(0,-3,0) *CFrame.Angles(0,0,math.rad(90))
  800. local m = Instance.new("SpecialMesh")
  801. m.MeshType = "Cylinder"
  802. m.Parent = p
  803. p.Parent = char
  804. local s = Instance.new("Sound")
  805. s.Volume = 2
  806. s.Looped = true
  807. s.SoundId = "rbxassetid://745717581"
  808. s.Parent = char
  809. s:Play()
  810. local pl = Instance.new("PointLight")
  811. pl.Brightness = 0.2
  812. pl.Color = Color3.new(180/255,181/255,255/255)
  813. pl.Range = 16
  814. pl.Shadows = false
  815. pl.Parent = torso
  816. humanoid.WalkSpeed = 0
  817. humanoid.JumpPower = 0
  818. humanoid.CameraOffset = Vector3.new(0,-1,0)
  819. 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})
  820. tween:Play()
  821. local tweendone,effectsallowed = false,false
  822. spawn(function()
  823. tween.Completed:wait()
  824. tweendone = true
  825. swait(60*60*2)
  826. talk("Hi, "..plr.Name..".")
  827. swait(60*7)
  828. talk("Sorry for not making my last script for SB something huge and epic.")
  829. swait(60*7)
  830. talk("But hopefully this is satisfactory.")
  831. swait(60*7)
  832. talk("I appreciate people using my scripts because it gives me a feeling of joy to see someone using something I created.")
  833. swait(60*10)
  834. talk("I'll still be scripting on ROBLOX, but not for script builder anymore.")
  835. swait(60*7)
  836. talk("My current project as of now is A Block in Time.")
  837. swait(60*7)
  838. 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.")
  839. swait(60*7)
  840. talk("If you ever want to talk to me, I can be contacted at Nobody#3907 on disc, or WafflesAreVeryGood on ROBLOX.")
  841. swait(60*7)
  842. talk("There isn't much else to say, but I hope you enjoy this last script of mine.")
  843. swait(60*7)
  844. talk("Thank you.")
  845. swait(60*5)
  846. gui.Enabled = false
  847. end)
  848.  
  849. addattack("MouseClick", function()
  850. if not effectsallowed then
  851. return
  852. end
  853. mouse.TargetFilter = workspace.CurrentCamera
  854. local hit = mouse.Hit
  855. local tar = mouse.Target
  856. local surface = mouse.TargetSurface
  857. mouse.TargetFilter = nil
  858. local p = Instance.new("Part")
  859. soundeffect("rbxassetid://397689338", 2, 1, p)
  860. p.Anchored = true
  861. p.CanCollide = false
  862. p.Material = "Neon"
  863. p.BrickColor = BrickColor.new("Deep orange")
  864. p.Size = Vector3.new(0.1,0.1,0.1)
  865. 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
  866. setshape(p, "Sphere")
  867. p.CFrame = CFrame.new(hit.p, hit.p+face)
  868. p.Parent = char
  869. for i = 1, 60*5 do
  870. local cf = p.CFrame
  871. p.Size = p.Size:Lerp(Vector3.new(30,30,0.1), 0.01)
  872. p.CFrame = cf
  873. p.Transparency = i/(60*5)
  874. swait()
  875. end
  876. p:Destroy()
  877. end)
  878. addattack(Enum.KeyCode.V, function()
  879. effectsallowed = not effectsallowed
  880. end)
  881.  
  882.  
  883. spawn(function()
  884. local num = 0
  885. repeat swait()
  886. local hit = mouse.Hit
  887. local tar = mouse.Target
  888. local surface = mouse.TargetSurface
  889. mouse.TargetFilter = nil
  890. if num%30 == 0 and hit and (hit.p-rootpart.Position).magnitude < 1000 and tar and effectsallowed then
  891. spawn(function()
  892. local p = Instance.new("Part")
  893. p.Anchored = true
  894. p.CanCollide = false
  895. p.Material = "Neon"
  896. p.Size = Vector3.new(0.1,0.1,0.1)
  897. 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
  898. p.CFrame = CFrame.new(hit.p, hit.p + face)
  899. p.Parent = char.Torso
  900. setshape(p, "Sphere")
  901. for i = 1, 20 do
  902. local cf = p.CFrame
  903. p.Size = p.Size:Lerp(Vector3.new(5,5,0.1), 0.3)
  904. p.CFrame = cf
  905. p.Transparency = i/20
  906. swait()
  907. end
  908. p:Destroy()
  909. end)
  910. end
  911. num = num + 1
  912. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  913. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  914. local tvel = rootpart.Velocity
  915. if not air then
  916. spawn(function()
  917. if num%5 == 0 and tweendone and effectsallowed then
  918. local offset = CFrame.new(math.random(-100,100),0,math.random(-100,100))
  919. local drop = Instance.new("Part")
  920. drop.Anchored = true
  921. drop.CanCollide = false
  922. drop.Size = Vector3.new(0.5,0.5,0.5)
  923. drop.CFrame = rootpart.CFrame *CFrame.new(0,50,-2)*offset
  924. drop.Material = "Neon"
  925. drop.Parent = workspace
  926. setshape(drop, "Sphere")
  927. local endcf = rootpart.CFrame *CFrame.new(0,-4,-2)*offset
  928. local cf2 = rootpart.CFrame *CFrame.new(0,-3,0)*offset
  929. for i = 1, 60*1 do
  930. local cf = drop.CFrame
  931. drop.Size = drop.Size:Lerp(Vector3.new(0.5,1.3,0.5), 0.2)
  932. drop.CFrame = cf:Lerp(endcf, 0.1)
  933. swait()
  934. end
  935. --soundeffect("rbxassetid://397689338", 2, math.random(9,11)/10, char)
  936. drop:Destroy()
  937. local p = Instance.new("Part")
  938. p.Anchored = true
  939. p.CanCollide = false
  940. p.Material = "Neon"
  941. p.Size = Vector3.new(0.1,0.1,0.1)
  942. p.CFrame = cf2
  943. p.Parent = workspace
  944. setshape(p, "Sphere")
  945. for i = 1, 60*5 do
  946. local cf = p.CFrame
  947. p.Size = p.Size:Lerp(Vector3.new(5,0.1,5), 0.01)
  948. p.CFrame = cf
  949. p.Transparency = i/(60*5)
  950. swait()
  951. end
  952. p:Destroy()
  953. end
  954. end)
  955. end
  956. local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil
  957. local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil
  958. local tvel = rootpart.Velocity
  959. if air and tvel.Y > 0 then
  960. animpose = "Jump"
  961. end
  962. if air and tvel.Y < 0 then
  963. animpose = "Fall"
  964. end
  965. if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then
  966. animpose = "Walking"
  967. end
  968. if not air and animpose == "Walking" and movespeed > 16 then
  969. animpose = "Walking"--or Running
  970. end
  971. if not air and movespeed == 0 then
  972. animpose = "Idle"
  973. end
  974. until not settings.CustomAnim
  975. end)
  976. local change = 1
  977. local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new
  978. while swait() and settings.CustomAnim do
  979. local num = tick()*change
  980. 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)
  981.  
  982. 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)
  983.  
  984. 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)
  985.  
  986. 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)
  987.  
  988. 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)
  989.  
  990. 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)
  991. end
Add Comment
Please, Sign In to add comment