Advertisement
iiFlamez

Untitled

Oct 15th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.63 KB | None | 0 0
  1. -- params : ...
  2.  
  3. local plr = game.Players.LocalPlayer
  4. local RunService = game:GetService("RunService").RenderStepped
  5. local UserInput = game:GetService("UserInputService")
  6. local EG = require(game.ReplicatedStorage.Modules:WaitForChild("EP"))
  7. local HoverModule = require(game.ReplicatedStorage.Modules:WaitForChild("Hover"))
  8. local Time = require(game.ReplicatedStorage.Modules:WaitForChild("Schedule"))
  9. local Audio = require(game.ReplicatedStorage.Modules:WaitForChild("Audio"))
  10. local TeleHover = require(game.ReplicatedStorage.Modules:WaitForChild("TeleHover"))
  11. local cam = game.Workspace.CurrentCamera
  12. local mouse = (plr:GetMouse())
  13. local DuelHoldAnim = nil
  14. local Shake = 0
  15. local flagwinds = plr.PlayerGui.Client.FX.FlagWinds
  16. local PFStand = 0
  17. flagwinds:Play()
  18. local Unequips = 0
  19. local WandEvent = (game.ReplicatedStorage.Events:WaitForChild("WandEvent"))
  20. local SpellConnection = nil
  21. _G.q1 = false
  22. local EnableHumanoid = function(Humanoid, b)
  23. for _,v in next do
  24. if v ~= Enum.HumanoidStateType.None and v ~= Enum.HumanoidStateType.Dead then
  25. Humanoid:SetStateEnabled(v, b)
  26. end
  27. end
  28. end
  29.  
  30. WandEvent.OnClientEvent:connect(function(eventType, args)
  31. if eventType == 1 then
  32. plr.Character.Humanoid:UnequipTools()
  33. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
  34. local anim = plr.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Character.Hit)
  35. anim:Play(0)
  36. Unequips = Unequips + 1
  37. wait(0.1)
  38. anim:Stop(0.6)
  39. anim:Destroy()
  40. wait(1.5)
  41. Unequips = Unequips - 1
  42. if Unequips <= 0 and not plr.Character:FindFirstChild("Posessed") then
  43. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  44. end
  45. else
  46. do
  47. if eventType == 2 then
  48. plr.Character.Humanoid.PlatformStand = true
  49. PFStand = PFStand + 1
  50. plr.Character.PrimaryPart.Velocity = args
  51. wait(0.8)
  52. PFStand = PFStand - 1
  53. if PFStand <= 0 then
  54. plr.Character.Humanoid.PlatformStand = false
  55. end
  56. else
  57. if eventType == 3 then
  58. plr.Character.Humanoid.PlatformStand = true
  59. PFStand = PFStand + 1
  60. plr.Character.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  61. wait(1.5)
  62. PFStand = PFStand - 1
  63. if PFStand <= 0 then
  64. plr.Character.Humanoid.PlatformStand = false
  65. end
  66. else
  67. -- DECOMPILER ERROR at PC141: Unhandled construct in 'MakeBoolean' P1
  68.  
  69. if eventType == 4 and cam.CFrame.p - args.magnitude <= 35 then
  70. Shake = 80
  71. end
  72. end
  73. end
  74. if eventType == 5 then
  75. EnableHumanoid(plr.Character.Humanoid, false)
  76. plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.FallingDown)
  77. plr.Character.HumanoidRootPart.CanCollide = false
  78. plr.Character.HumanoidRootPart.Anchored = true
  79. else
  80. if eventType == 6 then
  81. EnableHumanoid(plr.Character.Humanoid, true)
  82. plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp)
  83. plr.Character.HumanoidRootPart.Anchored = false
  84. else
  85. if eventType == 7 then
  86. plr.Character.HumanoidRootPart.Velocity = Vector3.new(0, 70, 0)
  87. else
  88. if eventType == 8 then
  89. game.Workspace.Gravity = 0
  90. plr.Character.Humanoid.PlatformStand = true
  91. plr.Character.Head.Velocity = args
  92. PFStand = PFStand + 1
  93. wait(5.6)
  94. PFStand = PFStand - 1
  95. game.Workspace.Gravity = 196.2
  96. if PFStand <= 0 then
  97. plr.Character.Humanoid.PlatformStand = false
  98. end
  99. else
  100. -- DECOMPILER ERROR at PC250: Unhandled construct in 'MakeBoolean' P1
  101.  
  102. if eventType == 9 and DuelHoldAnim == nil then
  103. DuelHoldAnim = plr.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Character.DuelHold)
  104. DuelHoldAnim:Play()
  105. _G.q1 = true
  106. end
  107. end
  108. end
  109. end
  110. end
  111. -- DECOMPILER ERROR at PC264: Unhandled construct in 'MakeBoolean' P1
  112.  
  113. if eventType == 10 and DuelHoldAnim ~= nil then
  114. DuelHoldAnim:Stop()
  115. DuelHoldAnim:Destroy()
  116. DuelHoldAnim = nil
  117. _G.q1 = false
  118. end
  119. if eventType == 11 then
  120. plr.PlayerGui.Client.warning.Visible = true
  121. wait(5)
  122. plr.PlayerGui.Client.warning.Visible = false
  123. else
  124. if eventType == 12 then
  125. plr.PlayerScripts.ControlScript.Disabled = true
  126. plr.Character.Humanoid.WalkToPoint = args
  127. plr.PlayerGui.Client.imperio.Visible = true
  128. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
  129. else
  130. if eventType == 13 then
  131. plr.PlayerScripts.ControlScript.Disabled = false
  132. plr.Character.Humanoid.WalkToPoint = plr.Character.HumanoidRootPart.Position
  133. plr.PlayerGui.Client.imperio.Visible = false
  134. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  135. else
  136. -- DECOMPILER ERROR at PC347: Unhandled construct in 'MakeBoolean' P1
  137.  
  138. if eventType == 14 and SpellConnection == nil then
  139. _G.q1 = true
  140. DuelHoldAnim = plr.Character.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.Character.DuelHold)
  141. DuelHoldAnim:Play()
  142. SpellConnection = mouse.Button1Down:connect(function()
  143. WandEvent:FireServer("imperio", {args, mouse.Hit.p})
  144. end)
  145. wait(10)
  146. _G.q1 = false
  147. SpellConnection:disconnect()
  148. SpellConnection = nil
  149. DuelHoldAnim:Stop()
  150. DuelHoldAnim:Destroy()
  151. DuelHoldAnim = nil
  152. end
  153. end
  154. end
  155. end
  156. if eventType == 15 then
  157. plr.Character.PrimaryPart.CFrame = plr.Character.PrimaryPart.CFrame * CFrame.Angles(math.pi / 2, 0, 0)
  158. for i = 1, 6 do
  159. wait(0.4)
  160. plr.Character.Humanoid.PlatformStand = true
  161. plr.Character.Head.Velocity = Vector3.new(math.random(-5, 5) * 2.5, 0, math.random(-5, 5) * 2.5)
  162. wait(0.4)
  163. plr.Character.Humanoid.PlatformStand = false
  164. end
  165. end
  166. end
  167. end
  168. end)
  169. _G.Shake = function()
  170. Shake = 80
  171. end
  172.  
  173. local Speed = 0
  174. NumLerp = function(A, B, Alpha)
  175. return A + (B - A) * Alpha
  176. end
  177.  
  178. local WindsUpdate = function()
  179. if plr.Character.PrimaryPart ~= nil then
  180. Speed = math.clamp(NumLerp(Speed, plr.Character.PrimaryPart.Velocity.magnitude / 35, 0.03), 0, 1.3)
  181. flagwinds.Volume = Speed
  182. flagwinds.PlaybackSpeed = Speed
  183. -- DECOMPILER ERROR at PC69: Unhandled construct in 'MakeBoolean' P1
  184.  
  185. if plr.Character.HumanoidRootPart:FindFirstChild("FlightVelocity") and flagwinds.Volume >= 0.5 then
  186. cam.CoordinateFrame = cam.CoordinateFrame * CFrame.fromEulerAnglesXYZ(math.sin(tick() * 20) * 0.002 * (0.5 - flagwinds.Volume), math.sin(tick() * 30) * 0.002 * (0.5 - flagwinds.Volume), 0)
  187. cam.FieldOfView = 65 + (flagwinds.Volume - 0.5) * 20
  188. end
  189. flagwinds.Volume = 0
  190. if Shake > 0 then
  191. Shake = Shake - 2
  192. cam.CoordinateFrame = cam.CoordinateFrame * CFrame.fromEulerAnglesXYZ(math.sin(tick() * 15) * 0.002 * (Shake / 20), math.sin(tick() * 25) * 0.002 * (Shake / 20), 0)
  193. end
  194. end
  195. end
  196.  
  197. local getAngle = function()
  198. local targ = game.Workspace.CurrentCamera.CFrame * CFrame.new(0, 0, -1000)
  199. local a = plr.Character.LowerTorso.Position - targ.p
  200. local b = plr.Character.LowerTorso.CFrame.lookVector
  201. local r = plr.Character.LowerTorso.CFrame.rightVector
  202. local dot = a:Dot(b)
  203. local dotr = a:Dot(r)
  204. local mag = Vector3.new(a.x, 0, a.z).magnitude * Vector3.new(b.x, 0, b.z).magnitude
  205. local yangle = -math.sin((-math.acos(dot / mag) + math.pi) * math.sign(dotr))
  206. if yangle < 4 then
  207. return CFrame.Angles(a.unit.y * 0.2, yangle * 0.65, 0)
  208. else
  209. return CFrame.Angles(a.unit.y * 0.2, 0, 0)
  210. end
  211. end
  212.  
  213. local AimCharacter = function()
  214. if plr.Character ~= nil and plr.Character:FindFirstChild("UpperTorso") and plr.Character.UpperTorso:FindFirstChild("Waist") then
  215. local a = getAngle()
  216. if a ~= nil then
  217. plr.Character.UpperTorso.Waist.C1 = plr.Character.UpperTorso.Waist.C1:lerp(CFrame.new(0, plr.Character.UpperTorso.Waist.C1.Y, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * a, 0.1)
  218. plr.Character.Head.Neck.C1 = plr.Character.Head.Neck.C1:lerp(CFrame.new(0, plr.Character.Head.Neck.C1.Y, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * a, 0.1)
  219. end
  220. end
  221. end
  222.  
  223. local UpdateOnRender = function(deltaTime)
  224. EG:UpdateAll(deltaTime)
  225. WindsUpdate()
  226. AimCharacter()
  227. end
  228.  
  229. RunService:connect(UpdateOnRender)
  230. local PlayerChatted = function(txt)
  231. local t = string.lower(txt)
  232. if t == "up!" or t == "up" then
  233. if not plr.Character:FindFirstChild("Magic Broom") and not plr.Character:FindFirstChild("Starcaller Broom") and not plr.Character:FindFirstChild("Crooked Broom") then
  234. local tool = plr.Character:FindFirstChild("Important Broom")
  235. end
  236. if tool and not plr.Character.HumanoidRootPart:FindFirstChild("FlightVelocity") then
  237. if tool.Name == "Magic Broom" then
  238. HoverModule.Fly(30)
  239. else
  240. HoverModule.Fly()
  241. end
  242. end
  243. end
  244. end
  245.  
  246. plr.Chatted:connect(PlayerChatted)
  247. local gui = plr:WaitForChild("PlayerGui"):WaitForChild("Client")
  248. local TweenColor = function(image, toggle)
  249. if toggle then
  250. game:GetService("TweenService"):Create(image, TweenInfo.new(0.15), {ImageColor3 = Color3.new(1, 1, 1)})
  251. end
  252. end
  253.  
  254. local buts = {"Anims", "Inventory", "Character", "Store"}
  255. for i = 1, 4 do
  256. local tw = game:GetService("TweenService"):Create(gui.SideFrame[buts[i]], TweenInfo.new(0.5), {ImageColor3 = Color3.new(1, 1, 1)})
  257. do
  258. do
  259. local tw2 = game:GetService("TweenService"):Create(gui.SideFrame[buts[i]], TweenInfo.new(0.5), {ImageColor3 = Color3.new(0.71372549019608, 0.71372549019608, 0.71372549019608)})
  260. do
  261. gui.SideFrame[buts[i]].MouseEnter:connect(function()
  262. tw:Play()
  263. end)
  264. gui.SideFrame[buts[i]].MouseLeave:connect(function()
  265. tw2:Play()
  266. end)
  267. end
  268. -- DECOMPILER ERROR at PC190: LeaveBlock: unexpected jumping out DO_STMT
  269.  
  270. end
  271. end
  272. end
  273. local buts2 = {"Points", "Money"}
  274. do
  275. for i = 1, 2 do
  276. local tw = game:GetService("TweenService"):Create(gui.SideFrame[buts2[i]], TweenInfo.new(0.5, {ImageColor3 = Color3.new(1, 0.86666666666667, 0.3843137254902)})
  277. local tw2 = game:GetService("TweenService):Create(gui.SideFrame[buts2[i], TweenInfo.new(0.5), {ImageColor3 = Color3.new(0.79607843137255, 0.68235294117647, 0.45490196078431)})
  278. gui.SideFrame[buts2[i]].MouseEnter:connect(function()
  279. tw:Play()
  280. gui.SideFrame[buts2[i]].when.Visible = true
  281. end)
  282. gui.SideFrame[buts2[i]].MouseLeave:connect(function()
  283. tw2:Play()
  284. gui.SideFrame[buts2[i]].when.Visible = false
  285. end)
  286. end
  287. end
  288. require(game.ReplicatedStorage.Modules:WaitForChild("AnimationsGui"))
  289. gui.SideFrame.Anims.MouseButton1Click:connect(function()
  290. gui.SideFrame.Animations.Visible = not gui.SideFrame.Animations.Visible
  291. plr.PlayerGui.Client.FX.click:Play()
  292. end)
  293. _G.TH = function(toggle)
  294. spawn(function()
  295. TeleHover.Fly(toggle)
  296. end)
  297. end
  298.  
  299. _G.BH = function(toggle)
  300. spawn(function()
  301. HoverModule.Fly(toggle)
  302. end)
  303. end
  304.  
  305. local cdf = gui.Cooldown
  306. local energy = plr:WaitForChild("Energy")
  307. local EnergyUpdate = function()
  308. cdf.Frame:TweenSize(UDim2.new(energy.Value / 15, 0, 1, 0), "Out", "Back", 1, true)
  309. cdf.amount.Text = energy.Value .. "/15"
  310. if energy.Value >= 15 and not cdf.no.Visible then
  311. cdf:TweenPosition(UDim2.new(0, -250, 1, -30), "Out", "Quad", 0.3, true)
  312. else
  313. cdf:TweenPosition(UDim2.new(0, 30, 1, -30), "Out", "Quad", 0.3, true)
  314. end
  315. end
  316.  
  317. energy.Changed:connect(EnergyUpdate)
  318. do
  319. for _,v in pairs(game.Workspace.StaticNPCs:GetChildren()) do
  320. v.Humanoid:LoadAnimation(game.ReplicatedStorage.Animations.NPC[v.Humanoid.Animation.Value]):Play()
  321. end
  322. end
  323. require(game.ReplicatedStorage.Modules.StoreGui)
  324. require(game.ReplicatedStorage.Modules.StoreGui2)
  325. gui.SideFrame.Store.MouseButton1Click:connect(function()
  326. gui.StoreFrame.Visible = not gui.StoreFrame.Visible
  327. plr.PlayerGui.Client.FX.click:Play()
  328. gui.InventoryFrame.Visible = false
  329. gui.MoreCoinsFrame.Visible = false
  330. gui.PointsFrame.Visible = false
  331. gui.Clothing.Visible = false
  332. gui.Bio.Visible = false
  333. end)
  334. gui.SideFrame.Points.MouseButton1Click:connect(function()
  335. gui.PointsFrame.Visible = not gui.PointsFrame.Visible
  336. plr.PlayerGui.Client.FX.click:Play()
  337. gui.InventoryFrame.Visible = false
  338. gui.MoreCoinsFrame.Visible = false
  339. gui.StoreFrame.Visible = false
  340. gui.Clothing.Visible = false
  341. gui.Bio.Visible = false
  342. end)
  343. gui.SideFrame.Money.MouseButton1Click:connect(function()
  344. gui.MoreCoinsFrame.Visible = not gui.MoreCoinsFrame.Visible
  345. end)
  346. gui.MoreCoinsFrame.Close.MouseButton1Click:connect(function()
  347. gui.MoreCoinsFrame.Visible = false
  348. end)
  349. gui.MoreCoinsFrame.Close.MouseEnter:connect(function()
  350. gui.MoreCoinsFrame.Close.desc.TextColor3 = Color3.new(1, 0.49019607843137, 0.50588235294118)
  351. end)
  352. gui.MoreCoinsFrame.Close.MouseLeave:connect(function()
  353. gui.MoreCoinsFrame.Close.desc.TextColor3 = Color3.new(0.72941176470588, 0.35686274509804, 0.36470588235294)
  354. end)
  355. local ops = {102923685, 102923807, 102924279, 102924378}
  356. do
  357. for i = 1, 4 do
  358. gui.MoreCoinsFrame.Frame[i].MouseButton1Click:connect(function()
  359. game:GetService("MarketplaceService"):PromptProductPurchase(plr, ops[i])
  360. end)
  361. gui.MoreCoinsFrame.Frame[i].MouseEnter:connect(function()
  362. gui.MoreCoinsFrame.Frame[i].ImageColor3 = Color3.new(0.9, 0.9, 1)
  363. end)
  364. gui.MoreCoinsFrame.Frame[i].MouseLeave:connect(function()
  365. gui.MoreCoinsFrame.Frame[i].ImageColor3 = Color3.new(0.30588235294118, 0.37254901960784, 0.52941176470588)
  366. end)
  367. end
  368. plr:WaitForChild("PlayerData").Currency.Changed:connect(function()
  369. plr.PlayerGui.Client.Money.how.Text = plr.PlayerData.Currency.Value
  370. plr.PlayerGui.Client.StoreFrame.funds.funds.Text = plr.PlayerData.Currency.Value
  371. plr.PlayerGui.Client.StoreFrame.InfoFrame.Frame.Cost.ImageLabel.Position = UDim2.new(0.5, plr.PlayerGui.Client.StoreFrame.InfoFrame.Frame.Cost.TextBounds.X / -2, 0, 1)
  372. end)
  373. plr.PlayerData.Points.Changed:connect(function()
  374. plr.PlayerGui.Client.Points.how.Text = plr.PlayerData.Points.Value
  375. end)
  376. plr.PlayerGui.Client.SideFrame.Money.how.Text = plr.PlayerData.Currency.Value
  377. plr.PlayerGui.Client.StoreFrame.funds.funds.Text = plr.PlayerData.Currency.Value
  378. plr.PlayerGui.Client.StoreFrame.funds.funds.ImageLabel.Position = UDim2.new(0., plr.PlayerGui.Client.StoreFrame.funds.funds.TextBounds.X / -, , 1)
  379. plr.PlayerGui.Client.SideFrame.Points.how.Text = plr.PlayerData.Points.Value
  380. local PaymentTime = 300
  381. do
  382. local RewardWaitTime = os.time() - plr:WaitForChild("LLG).Value
  383. spawn(function()
  384. while 1 do
  385. wait(1)
  386. local sec = PaymentTime - math.floor(PaymentTime / 60) * 60
  387. local add0 = ""
  388. if sec < 10 then
  389. add0 = "0"
  390. end
  391. gui.SideFrame.Money.when.Text = "Next payment in: " .. math.floor(PaymentTime / 60) .. ":" .. add0 .. PaymentTime - math.floor(PaymentTime / 60) * 60
  392. gui.SideFrame.Points.when.Text = "Next reward in: " .. 18 - math.floor((RewardWaitTime - game.Workspace.DistributedGameTime) / 60 / 60) .. " hours"
  393. PaymentTime = PaymentTime - 1
  394. if PaymentTime <= 0 then
  395. PaymentTime = 300
  396. game.ReplicatedStorage.Events.CoinsEvent:FireServer()
  397. end
  398. if PaymentTime % 2 == 0 then
  399. plr.Energy.Value = math.clamp(plr.Energy.Value + 1, 0, 15)
  400. end
  401. end
  402. end)
  403. require(game.ReplicatedStorage.Modules.RewardClien)
  404. gui.SideFrame.Inventory.MouseButton1Click:connect(function()
  405. gui.InventoryFrame.Visible = not gui.InventoryFrame.Visible
  406. plr.PlayerGui.Client.FX.click:Play()
  407. gui.MoreCoinsFrame.Visible = false
  408. gui.PointsFrame.Visible = false
  409. gui.StoreFrame.Visible = false
  410. gui.Clothing.Visible = false
  411. gui.Bio.Visible = false
  412. end)
  413. local isf = gui.InventoryFrame.ScrollingFrame
  414. local Items = require(game.ReplicatedStorage.Modules.Store).Items
  415. local Sample = game.ReplicatedStorage.Sample
  416. local SelectedItem = nil
  417. local SelectedCatagory = 1
  418. local SelectedId = nil
  419. local UpdateInfoFrame = function()
  420. gui.InventoryFrame.InfoFrame.Frame.Title.Text = SelectedItem[5]
  421. gui.InventoryFrame.InfoFrame.Frame.Desc.Text = SelectedItem[1]
  422. gui.InventoryFrame.InfoFrame.Frame.Title.Visible = true
  423. gui.InventoryFrame.InfoFrame.Frame.Equip.Visible = true
  424. gui.InventoryFrame.InfoFrame.Frame.Desc.Visible = true
  425. if string.find(plr.PlayerData.Equipped.Value, SelectedId) == nil then
  426. gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Equip"
  427. else
  428. gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Unequip"
  429. end
  430. end
  431.  
  432. local InventoryCatagoryChanged = function(cat)
  433. isf:ClearAllChildren()
  434. local qa = Instance.new("UIGridLayout")
  435. qa.CellPadding = UDim2.new(0, 5, 0, 5)
  436. qa.CellSize = UDim2.new(0, 95, 0, 95)
  437. qa.Parent = isf
  438. SelectedItem = nil
  439. SelectedCatagory = cat
  440. gui.InventoryFrame.InfoFrame.Frame.Title.Visible = false
  441. gui.InventoryFrame.InfoFrame.Frame.Equip.Visible = false
  442. gui.InventoryFrame.InfoFrame.Frame.Desc.Visible = false
  443. local sizecount = 0
  444. for i,v in pairs(Items[cat]) do
  445. do
  446. if string.find(plr.PlayerData.Inventory.Value, i .. ",") ~= nil then
  447. do
  448. local b = Sample:Clone()
  449. do
  450. b.ImageLabel.Image = v[3]
  451. sizecount = sizecount + 1
  452. b.ImageColor3 = Color3.new(0.11764705882353, 0.14117647058824, 0.30196078431373)
  453. if v[4] ~= nil then
  454. b.ImageLabel.ImageRectSize = Vector2.new(256, 256)
  455. b.ImageLabel.ImageRectOffset = v[4]
  456. end
  457. b.Parent = isf
  458. b.Name = v[5]
  459. b.MouseButton1Click:connect(function()
  460. SelectedId = i
  461. b.ImageColor3 = Color3.new(1, 0.94117647058824, 0.48627450980392)
  462. if SelectedItem ~= nil then
  463. b.Parent[SelectedItem[5]].ImageColor3 = Color3.new(0.11764705882353, 0.14117647058824, 0.30196078431373)
  464. end
  465. SelectedItem = v
  466. UpdateInfoFrame()
  467. end)
  468. end
  469. -- DECOMPILER ERROR at PC106: LeaveBlock: unexpected jumping out IF_THEN_STMT
  470.  
  471. -- DECOMPILER ERROR at PC106: LeaveBlock: unexpected jumping out IF_STMT
  472.  
  473. end
  474. end
  475. end
  476. end
  477. isf.CanvasSize = UDim2.new(0, 0, 0, (sizecount) / 3 * 100)
  478. end
  479.  
  480. InventoryCatagoryChanged(1)
  481. for i = 1, 5 do
  482. gui.InventoryFrame.Frame[i].MouseButton1Click:connect(function()
  483. InventoryCatagoryChanged(i)
  484. end)
  485. gui.InventoryFrame.Frame[i].MouseEnter:connect(function()
  486. gui.InventoryFrame.Frame[i].ImageColor3 = Color3.new(1, 0.96078431372549, 0.81176470588235)
  487. end)
  488. gui.InventoryFrame.Frame[i].MouseLeave:connect(function()
  489. gui.InventoryFrame.Frame[i].ImageColor3 = Color3.new(1, 0.92549019607843, 0.54901960784314)
  490. end)
  491. end
  492. gui.InventoryFrame.InfoFrame.Frame.Equip.MouseButton1Click:connect(function()
  493. if string.find(plr.PlayerData.Equipped.Value, SelectedId) == nil then
  494. gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Unequip"
  495. else
  496. gui.InventoryFrame.InfoFrame.Frame.Equip.TextLabel.Text = "Equip"
  497. end
  498. game.ReplicatedStorage.Events.InventoryEvent:FireServer(SelectedCatagory, SelectedId)
  499. end)
  500. local c = game.Players.LocalPlayer:WaitForChild("PlayerGui):WaitForChild("BubbleChat)
  501. c.ChildAdded:connect(function(cha)
  502. if game.Players[cha.Adornee.Parent.Name]:FindFirstChild("VIP") then
  503. cha:WaitForChild("BillboardFrame").ChildAdded:connect(function(ch)
  504. ch.ImageColor3 = Color3.new(0.23921568627451, 0.23921568627451, 0.23921568627451)
  505. ch:WaitForChild("ChatBubbleTail").ImageColor3 = Color3.new(0.23921568627451, 0.23921568627451, 0.23921568627451)
  506. ch.BubbleText.TextColor3 = Color3.new(0.97254901960784, 0.85098039215686, 0.42745098039216)
  507. end)
  508. cha.BillboardFrame:WaitForChild("ChatBubble).ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
  509. cha.BillboardFrame.ChatBubble:WaitForChild("ChatBubbleTail).ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
  510. cha.BillboardFrame.ChatBubble.BubbleText.TextColor3 = Color3.new(0.9725490196078, 0.85098039215686, 0.42745098039216)
  511. cha.BillboardFrame.SmallTalkBubble.ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
  512. cha.BillboardFrame.SmallTalkBubble.BubbleText.TextColor3 = Color3.new(0.9725490196078, 0.85098039215686, 0.42745098039216)
  513. cha.BillboardFrame.SmallTalkBubble.ChatBubbleTailFrame.ChatBubbleTail.ImageColor3 = Color3.new(0.2392156862745, 0.23921568627451, 0.23921568627451)
  514. end
  515. end)
  516. local f = game.Players.LocalPlayer:WaitForChild("PlayerGui):WaitForChild("Chat):WaitForChild("Frame):WaitForChild("ChatChannelParentFrame):WaitForChild("Frame_MessageLogDisplay):WaitForChild("Scroller)
  517. f.ChildAdded:connect(function(c)
  518. local te = c.TextLabel.TextButton.Text
  519. if game.Players[string.sub(te, 2, string.len(te) - 2)]:FindFirstChild("VIP") then
  520. c.TextLabel.TextColor3 = Color3.new(0.97254901960784, 0.85098039215686, 0.42745098039216)
  521. end
  522. end)
  523. local intg = plr.PlayerGui:WaitForChild("Intro)
  524. intg.Enabled = true
  525. for i = 1, 4 do
  526. intg.Frame.Frame[i].MouseEnter:connect(function()
  527. intg.Frame.Frame[i].ImageColor3 = Color3.new(1, 1, 1)
  528. end)
  529. intg.Frame.Frame[i].MouseLeave:connect(function()
  530. intg.Frame.Frame[i].ImageColor3 = Color3.new(0.30588235294118, 0.37254901960784, 0.52941176470588)
  531. end)
  532. intg.Frame.Frame[i].MouseButton1Click:connect(function()
  533. intg.Frame.Visible = false
  534. intg.Frame2.Visible = true
  535. game.ReplicatedStorage.Events.TeamsEvent:FireServer(i)
  536. end)
  537. end
  538. for i = 1, 5 do
  539. intg.Frame2.Frame[i].MouseEnter:connect(function()
  540. intg.Frame2.Frame[i].ImageColor3 = Color3.new(0.47843137254902, 0.5843137254902, 0.82745098039216)
  541. end)
  542. intg.Frame2.Frame[i].MouseLeave:connect(function()
  543. intg.Frame2.Frame[i].ImageColor3 = Color3.new(0.30588235294118, 0.37254901960784, 0.52941176470588)
  544. end)
  545. intg.Frame2.Frame[i].MouseButton1Click:connect(function()
  546. intg.Frame2.Visible = false
  547. intg.Enabled = false
  548. intg.Frame.Visible = true
  549. game.ReplicatedStorage.Events.TeamsEvent:FireServer(nil, i)
  550. end)
  551. end
  552. intg.Frame2.Frame["6"].MouseEnter:connect(function()
  553. intg.Frame2.Frame["6"].ImageColor3 = Color3.new(0.59607843137255, 0.59607843137255, 0.59607843137255)
  554. end)
  555. intg.Frame2.Frame["6"].MouseLeave:connect(function()
  556. intg.Frame2.Frame["6"].ImageColor3 = Color3.new(0.47843137254902, 0.47843137254902, 0.47843137254902)
  557. end)
  558. intg.Frame2.Frame["6"].MouseButton1Click:connect(function()
  559. intg.Frame2.Visible = false
  560. intg.Enabled = false
  561. intg.Frame.Visible = true
  562. game.ReplicatedStorage.Events.TeamsEvent:FireServer(nil, 6)
  563. end)
  564. local cgui = gui:WaitForChild("Clothing)
  565. require(game.ReplicatedStorage.Modules.ClothingGu)
  566. gui.SideFrame.Character.MouseButton1Click:connect(function()
  567. cgui.Visible = not cgui.Visible
  568. gui.Bio.Visible = cgui.Visible
  569. plr.PlayerGui.Client.FX.click:Play()
  570. if plr.PlayerData.PlayerName.Value == plr.Name then
  571. gui.Bio.PlayerName.Text = "Enter your roleplay Name"
  572. else
  573. gui.Bio.PlayerName.Text = plr.PlayerData.PlayerName.Value
  574. gui.Bio.PlayerName.ClearTextOnFocus = false
  575. end
  576. if plr.PlayerData.PlayerDesc.Value == "" then
  577. gui.Bio.PlayerRole.Text = "Describe yourself (e.g; \"student, knows a lot of spells\")"
  578. else
  579. gui.Bio.PlayerRole.Text = plr.PlayerData.PlayerDesc.Value
  580. gui.Bio.PlayerRole.ClearTextOnFocus = false
  581. end
  582. gui.InventoryFrame.Visible = false
  583. gui.MoreCoinsFrame.Visible = false
  584. gui.PointsFrame.Visible = false
  585. gui.StoreFrame.Visible = false
  586. end)
  587. local clickedfinish = false
  588. gui.Bio.TextButton.MouseButton1Down:connect(function()
  589. if not clickedfinish then
  590. clickedfinish = true
  591. local pn, pd = nil, nil
  592. if gui.Bio.PlayerName.Text ~= "Enter your roleplay Name" then
  593. pn = gui.Bio.PlayerName.Text
  594. end
  595. if gui.Bio.PlayerRole.Text ~= "Describe yourself (e.g; \"student, can fly, helps people\")" then
  596. pd = gui.Bio.PlayerRole.Text
  597. end
  598. game.ReplicatedStorage.Events.CharacterEditEvent:FireServer(pn, pd)
  599. plr.PlayerGui.Client.Enabled = true
  600. wait(1)
  601. clickedfinish = false
  602. end
  603. end)
  604. local cam = game.Workspace.CurrentCamera
  605. local UpdateUI = function()
  606. if cam.ViewportSize.Y <= 452 then
  607. local size = cam.ViewportSize.Y / 452
  608. cgui.Cats.UIScale.Scale = size
  609. gui.StoreFrame.UIScale.Scale = size - 0.075
  610. gui.PointsFrame.UIScale.Scale = size - 0.075
  611. gui.InventoryFrame.UIScale.Scale = size - 0.075
  612. cgui.ScrollingFrame.UIGridLayout.CellSize = UDim2.new(0, 95 * size - 0.1, 0, 95 * size - 0.1)
  613. else
  614. do
  615. cgui.Cats.UIScale.Scale = 1
  616. gui.StoreFrame.UIScale.Scale = 1
  617. gui.PointsFrame.UIScale.Scale = 1
  618. gui.InventoryFrame.UIScale.Scale = 1
  619. cgui.ScrollingFrame.UIGridLayout.CellSize = UDim2.new(0, 85, 0, 85)
  620. if cam.ViewportSize.X < 965 then
  621. gui.SideFrame.Money.Position = UDim2.new(1, -20, 1, -90)
  622. gui.SideFrame.Points.Position = UDim2.new(1, -90, 1, -90)
  623. gui.SideFrame.UIScale.Scale = cam.ViewportSize.X / 1144
  624. else
  625. if cam.ViewportSize.X < 1144 then
  626. gui.SideFrame.UIScale.Scale = cam.ViewportSize.X / 1144
  627. gui.SideFrame.Points.Position = UDim2.new(1, -370, 1, -20)
  628. gui.SideFrame.Money.Position = UDim2.new(1, -300, 1, -20)
  629. else
  630. gui.SideFrame.UIScale.Scale = 1
  631. gui.SideFrame.Points.Position = UDim2.new(1, -370, 1, -20)
  632. gui.SideFrame.Money.Position = UDim2.new(1, -300, 1, -20)
  633. end
  634. end
  635. end
  636. end
  637. end
  638.  
  639. UpdateUI()
  640. cam:GetPropertyChangedSignal("ViewportSize):connect(UpdateU)
  641. local lunchg = game.Workspace.LunchPart.MenuItems
  642. for _,v in pairs(lunchg.Breakfast:GetChildren() do
  643. v.Purchase.MouseEnter:connect(function()
  644. v.Purchase.ImageColor3 = Color3.new(1, 0.98039215686275, 0.43137254901961)
  645. end)
  646. v.Purchase.MouseLeave:connect(function()
  647. v.Purchase.ImageColor3 = Color3.new(1, 0.86274509803922, 0.31372549019608)
  648. end)
  649. v.Purchase.MouseButton1Down:connect(function()
  650. if plr.PlayerData.Currency.Value - 2 >= 0 then
  651. game.ReplicatedStorage.Events.FoodItemEvent:FireServer(v.title.Text)
  652. end
  653. end)
  654. end
  655. local theloots = game.Workspace.Loots
  656. local waitt = os.time() - plr.PlayerData.LastPickUp.Value
  657. if waitt < 1000 then
  658. theloots.Parent = nil
  659. spawn(function()
  660. wait(os.time() - plr.PlayerData.LastPickUp.Value)
  661. theloots.Parent = game.Workspace
  662. end)
  663. end
  664. plr.PlayerData.LastPickUp.Changed:connect(function()
  665. print("changed")
  666. wait(5)
  667. theloots.Parent = nil
  668. wait(995)
  669. theloots.Parent = game.Workspace
  670. end)
  671. local SafeZones = game.ReplicatedStorage.Areas.Sound2:GetChildren()
  672. local Volume = require(game.ReplicatedStorage.Modules.Volum)
  673. while 1 do
  674. wait()
  675. Audio.CheckArea()
  676. for i = 1, #SafeZones do
  677. if Volume.check(SafeZones[i], plr.Character.HumanoidRootPart.Position) then
  678. cdf.Frame.energy.Visible = false
  679. cdf.no.Visible = true
  680. cdf.amount.Visible = false
  681. break
  682. else
  683. cdf.Frame.energy.Visible = true
  684. cdf.no.Visible = false
  685. cdf.amount.Visible = true
  686. end
  687. end
  688. do
  689. if plr.Character:FindFirstChild("Pet") then
  690. plr.Character.Pet.HumanoidRootPart.BodyPosition.Position = plr.Character.HumanoidRootPart.CFrame * CFrame.new(-, 2, 3.5).p + Vector3.new(, math.sin(tick()), math.sin(tick()) / 2)
  691. plr.Character.Pet.HumanoidRootPart.BodyGyro.cframe = plr.Character.HumanoidRootPart.CFrame * CFrame.Angles(, math.pi, 0)
  692. end
  693. -- DECOMPILER ERROR at PC895: LeaveBlock: unexpected jumping out DO_STMT
  694.  
  695. end
  696. end
  697. end
  698. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement