SyntaxIsHere

Untitled

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