Advertisement
Rodapitati

Really Good Dead Winter Script

Apr 5th, 2019
4,444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.80 KB | None | 0 0
  1.  
  2. local SpawnGui = Instance.new("ScreenGui")
  3.  
  4. local ItemName = Instance.new("TextBox")
  5.  
  6. local TextButton = Instance.new("TextButton")
  7.  
  8. local Count = Instance.new("TextBox")
  9.  
  10. local TextButton_2 = Instance.new("TextButton")
  11.  
  12. local Hide = Instance.new("TextButton")
  13.  
  14. local Show = Instance.new("TextButton")
  15.  
  16. local SpawnButton = Instance.new("TextButton")
  17.  
  18.  
  19.  
  20. -- Properties
  21.  
  22.  
  23. Hide.Name = "Hide"
  24.  
  25. Hide.Parent = SpawnGui
  26.  
  27. Hide.BackgroundColor3 = Color3.new(1, 1, 1)
  28.  
  29. Hide.Position = UDim2.new(0, 0, 0, 264)
  30.  
  31. Hide.Size = UDim2.new(0, 50, 0, 35)
  32.  
  33. Hide.Font = Enum.Font.SciFi
  34.  
  35. Hide.FontSize = Enum.FontSize.Size10
  36.  
  37. Hide.Text = "Hide <"
  38.  
  39.  
  40.  
  41. Show.Name = "Show"
  42.  
  43. Show.Parent = SpawnGui
  44.  
  45. Show.BackgroundColor3 = Color3.new(1, 1, 1)
  46.  
  47. Show.Position = UDim2.new(0, 0, 0, 264)
  48.  
  49. Show.Size = UDim2.new(0, 50, 0, 35)
  50.  
  51. Show.Visible = false
  52.  
  53. Show.Font = Enum.Font.SciFi
  54.  
  55. Show.FontSize = Enum.FontSize.Size10
  56.  
  57. Show.Text = "Show >"
  58.  
  59.  
  60.  
  61. SpawnGui.Name = "SpawnGui"
  62.  
  63. SpawnGui.Parent = game.CoreGui
  64.  
  65.  
  66.  
  67. ItemName.Name = "ItemName"
  68.  
  69. ItemName.Parent = SpawnGui
  70.  
  71. ItemName.BackgroundColor3 = Color3.new(0.529412, 0.529412, 0.529412)
  72.  
  73. ItemName.Position = UDim2.new(0, 0, 0, 300)
  74.  
  75. ItemName.Size = UDim2.new(0, 200, 0, 50)
  76.  
  77. ItemName.Font = Enum.Font.SciFi
  78.  
  79. ItemName.FontSize = Enum.FontSize.Size14
  80.  
  81. ItemName.Text = "Item"
  82.  
  83.  
  84.  
  85. TextButton.Parent = ItemName
  86.  
  87. TextButton.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  88.  
  89. TextButton.Position = UDim2.new(0, 200, 0, 0)
  90.  
  91. TextButton.Size = UDim2.new(0, 50, 0, 50)
  92.  
  93. TextButton.Font = Enum.Font.SciFi
  94.  
  95. TextButton.FontSize = Enum.FontSize.Size10
  96.  
  97. TextButton.Text = "Item OK!"
  98.  
  99.  
  100.  
  101. Count.Name = "Count"
  102.  
  103. Count.Parent = SpawnGui
  104.  
  105. Count.BackgroundColor3 = Color3.new(0.529412, 0.529412, 0.529412)
  106.  
  107. Count.Position = UDim2.new(0, 0, 0, 350)
  108.  
  109. Count.Size = UDim2.new(0, 200, 0, 50)
  110.  
  111. Count.Font = Enum.Font.SciFi
  112.  
  113. Count.FontSize = Enum.FontSize.Size14
  114.  
  115. Count.Text = "Stack in item"
  116.  
  117.  
  118.  
  119. TextButton_2.Parent = Count
  120.  
  121. TextButton_2.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  122.  
  123. TextButton_2.Position = UDim2.new(0, 200, 0, 0)
  124.  
  125. TextButton_2.Size = UDim2.new(0, 50, 0, 50)
  126.  
  127. TextButton_2.Font = Enum.Font.SciFi
  128.  
  129. TextButton_2.FontSize = Enum.FontSize.Size10
  130.  
  131. TextButton_2.Text = "Stack OK!"
  132.  
  133.  
  134.  
  135. SpawnButton.Name = "SpawnButton"
  136.  
  137. SpawnButton.Parent = SpawnGui
  138.  
  139. SpawnButton.BackgroundColor3 = Color3.new(1, 0.666667, 0)
  140.  
  141. SpawnButton.Position = UDim2.new(0, 0, 0, 451)
  142.  
  143. SpawnButton.Size = UDim2.new(0, 250, 0, 40)
  144.  
  145. SpawnButton.Font = Enum.Font.SciFi
  146.  
  147. SpawnButton.FontSize = Enum.FontSize.Size10
  148.  
  149. SpawnButton.Text = "Spawn!"
  150.  
  151. SpawnButton.TextColor3 = Color3.new(0, 0, 0)
  152.  
  153.  
  154.  
  155. lightup = function(button)
  156.  
  157. coroutine.resume(coroutine.create(function()
  158.  
  159. local origincolor = button.BackgroundColor3
  160.  
  161. button.BackgroundColor3 = Color3.new(0, 1, 0)
  162.  
  163. wait(0.1)
  164.  
  165. button.BackgroundColor3 = origincolor
  166.  
  167. end))
  168.  
  169. end
  170.  
  171.  
  172.  
  173. function changename()
  174.  
  175. lightup(TextButton)
  176.  
  177. nameofitem = ItemName.Text
  178.  
  179. end
  180.  
  181. TextButton.MouseButton1Down:connect(changename)
  182.  
  183.  
  184.  
  185. function changeamount()
  186.  
  187. lightup(TextButton_2)
  188.  
  189. Amount = tonumber(Count.Text)
  190.  
  191. end
  192.  
  193. TextButton_2.MouseButton1Down:connect(changeamount)
  194.  
  195.  
  196.  
  197. HideGui = function()
  198.  
  199. lightup(Hide)
  200.  
  201. for _, v in pairs (SpawnGui:GetChildren()) do
  202.  
  203. v.Visible = false
  204.  
  205. end
  206.  
  207. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  208. Show.Visible = true
  209.  
  210. end
  211.  
  212. Hide.MouseButton1Down:connect(HideGui)
  213.  
  214.  
  215.  
  216. ShowGui = function()
  217.  
  218. lightup(Show)
  219.  
  220. for _, v in pairs (SpawnGui:GetChildren()) do
  221.  
  222. v.Visible = true
  223.  
  224. end
  225.  
  226. Show.Visible = false
  227.  
  228. end
  229.  
  230. Show.MouseButton1Down:connect(ShowGui)
  231.  
  232.  
  233.  
  234. local player = game.Players.LocalPlayer
  235.  
  236. local user = player.Character;
  237.  
  238. local cam = workspace.CurrentCamera;
  239.  
  240.  
  241.  
  242. function spawnitem()
  243.  
  244. lightup(SpawnButton)
  245.  
  246. if Amount and nameofitem then
  247.  
  248. for i = 1, Amount do
  249.  
  250. local player = game.Players.LocalPlayer
  251.  
  252. local user = player.Character;
  253.  
  254. local cam = workspace.CurrentCamera;
  255.  
  256. local hit, position =
  257. workspace:FindPartOnRayWithIgnoreList(Ray.new((user.Torso.CFrame*CFrame.new(0,
  258. 0, -5)).p, Vector3.new(0, -60, 0)), {cam, workspace.Terrain});
  259.  
  260. local area = CFrame.new(position+Vector3.new(0, 3, 0))*CFrame.Angles(0, math.rad(math.random(0, 359)), 0);
  261.  
  262. local origin = game.Players.LocalPlayer.Character.Torso.CFrame;
  263.  
  264. local cframe = area*origin:toObjectSpace(game.Players.LocalPlayer.Character.Torso.CFrame);
  265.  
  266. game.Workspace.resources.events.createItemInWorld:FireServer(10, tostring(nameofitem), cframe)
  267.  
  268. end
  269.  
  270. end
  271.  
  272. end
  273.  
  274.  
  275.  
  276. SpawnButton.MouseButton1Down:connect(spawnitem)
  277.  
  278. plr = game.Players.LocalPlayer
  279.  
  280. hum = plr.Character.HumanoidRootPart
  281.  
  282. mouse = plr:GetMouse()
  283.  
  284. mouse.KeyDown:connect(function(key)
  285.  
  286.  
  287. if key == "t" then
  288.  
  289. if mouse.Target then
  290.  
  291. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  292.  
  293. end
  294.  
  295. end
  296. end)
  297.  
  298.  
  299. local setkey = "y" -- change to something like "g" or whatever to change it
  300. local waitduration = 0.5 -- the amount of time before the ESP updates (removes all current ESP objects and makes new ones)
  301.  
  302. --=you don't have to edit below but you can i guess=--
  303.  
  304.  
  305. local plr = game:GetService('Players').LocalPlayer
  306.  
  307. function getteam(plr) -- yeah i did this instead of getting their actual team because for some reason that doesnt work sometimes idk why
  308. local thang = nil
  309. if plr.TeamColor then
  310. for i,v in pairs(game:GetService('Teams'):GetChildren()) do
  311. if v.TeamColor == plr.TeamColor then
  312. thang = v
  313. end
  314. end
  315. end
  316. return thang
  317. end
  318.  
  319. local plr = game:GetService('Players').LocalPlayer
  320. if plr:FindFirstChild('Zz1pF800p8lDrsOQgGiqa') ==nil then
  321.  
  322.  
  323. local thingy = Instance.new('IntValue',plr)
  324. thingy.Name="Zz1pF800p8lDrsOQgGiqa"
  325. thingy.AncestryChanged:connect(function()
  326. wait()
  327. thingy.Parent = plr
  328. end)
  329. local mou = plr:GetMouse()
  330. local active = false
  331.  
  332. function invert(Color)
  333. return Color3.new((255 - Color.r * 255)/255, (255 - Color.g * 255)/255, (255 - Color.b * 255)/255)
  334. end
  335.  
  336. function heil()
  337. for i,v in pairs(game:GetService('CoreGui'):GetChildren()) do
  338. if v:IsA('Folder') and (game:GetService('Players'):FindFirstChild(v.Name) or v:FindFirstChildOfClass("BillboardGui") or v:FindFirstChildOfClass("BoxHandleAdornment")) then
  339. v:Destroy()
  340. end
  341. end
  342. if active == true then
  343. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  344. if v.Character and v~=plr then
  345. if game:GetService('CoreGui'):FindFirstChild(v.Name) == nil then
  346. local folder = Instance.new('Folder',game:GetService('CoreGui'))
  347. folder.Name = v.Name
  348. if v.Character:FindFirstChild('Head') then
  349. local gui = Instance.new('BillboardGui',folder)
  350. gui.Adornee = v.Character.Head
  351. gui.AlwaysOnTop = true
  352. gui.LightInfluence = 0
  353. gui.Size = UDim2.new(10,0,2,0)
  354. gui.StudsOffset=Vector3.new(0,4,0)
  355. local text = Instance.new('TextLabel',gui)
  356. if getteam(v) then
  357. text.BackgroundColor3 = v.TeamColor.Color
  358. text.TextColor3 = invert(v.TeamColor.Color)
  359. text.BorderColor3 = v.TeamColor.Color
  360. else
  361. text.BackgroundColor3 = Color3.new(1,1,1)
  362. text.TextColor3 = Color3.new(0,0,0)
  363. text.BorderColor3 = Color3.new(1,1,01)
  364. end
  365. text.BorderSizePixel = 2
  366. text.Size = UDim2.new(1,0,1,0)
  367. text.TextScaled = true
  368. text.Text = v.Name
  369. text.TextYAlignment = Enum.TextYAlignment.Top
  370. text.Font = Enum.Font.SourceSansBold
  371. local text2 = Instance.new('TextLabel',text)
  372. text2.BackgroundTransparency = 1
  373. text2.Size = UDim2.new(1,0,0.3,0)
  374. text2.Position = UDim2.new(0,0,0.7,0)
  375. text2.TextScaled = true
  376. if getteam(v) then
  377. text2.Text = [[Team: "]]..getteam(v).Name..[["]]
  378. else
  379. text2.Text = [[Team: "None"]]
  380. end
  381. text2.Font = Enum.Font.SourceSansBold
  382. if getteam(v) then
  383. text2.TextColor3 = invert(v.TeamColor.Color)
  384. else
  385. text2.TextColor3 = Color3.new(0,0,0)
  386. end
  387. end
  388. if (v.Character:FindFirstChild('Head')) then
  389. for _,part in pairs(v.Character:GetChildren()) do
  390. if part:IsA('BasePart') then
  391. local coru=coroutine.wrap(function()
  392. local endtransparency = part.Transparency
  393. local adorn = Instance.new('BoxHandleAdornment',folder)
  394. adorn.Name = v.Name
  395. if part.Name ~= "Head" then
  396. adorn.Size = part.Size
  397. else
  398. adorn.Size = (part.Size)-Vector3.new(part.Size.X/2,0,0)
  399. end
  400. adorn.Adornee = part
  401. adorn.AlwaysOnTop = true
  402. adorn.ZIndex = 5
  403. adorn.Transparency = endtransparency
  404. adorn.Color3 = Color3.fromRGB(255, 44, 17)
  405. local adorn2 = Instance.new('BoxHandleAdornment',folder)
  406. adorn2.Name = v.Name
  407. if part.Name ~= "Head" then
  408. adorn2.Size = part.Size*1.1
  409. else
  410. adorn2.Size = (part.Size*1.1)-Vector3.new(part.Size.X/2,0,0)
  411. end
  412. adorn2.Adornee = part
  413. adorn2.AlwaysOnTop = true
  414. adorn2.ZIndex = 2
  415. adorn2.Transparency = endtransparency+0.1
  416. adorn2.Color3 = Color3.fromRGB(183, 209, 73)
  417. local adorn3 = Instance.new('BoxHandleAdornment',folder)
  418. adorn3.Name = v.Name
  419. if part.Name ~= "Head" then
  420. adorn3.Size = part.Size*1.15
  421. else
  422. adorn3.Size = (part.Size*1.15)-Vector3.new(part.Size.X/2,0,0)
  423. end
  424. adorn3.Adornee = part
  425. adorn3.AlwaysOnTop = true
  426. adorn3.ZIndex = 1
  427. adorn3.Transparency = endtransparency+0.2
  428. adorn3.Color3 = Color3.fromRGB(35, 166, 184)
  429. end)
  430. coru()
  431. end
  432. end
  433. end
  434. end
  435. end
  436. end
  437. end
  438. end
  439.  
  440. mou.KeyDown:connect(function(key)
  441. if key==setkey then
  442. active = not active
  443. end
  444. end)
  445.  
  446. while true do
  447. heil()
  448. wait(waitduration)
  449. end
  450.  
  451. end
  452.  
  453. noclip = false
  454. game:GetService('RunService').Stepped:connect(function()
  455. if noclip then
  456. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  457. end
  458. end)
  459. plr = game.Players.LocalPlayer
  460. mouse = plr:GetMouse()
  461. mouse.KeyDown:connect(function(key)
  462.  
  463. if key == "u" then
  464. noclip = not noclip
  465. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  466. end
  467. end)
  468. print('Loaded')
  469. print('Press "y" to noclip')
  470.  
  471. local spawner = Instance.new("ScreenGui")
  472. local Main = Instance.new("Frame")
  473. local ItemFrame = Instance.new("ScrollingFrame")
  474. local ItemSearch = Instance.new("TextBox")
  475. local SpawnButton = Instance.new("TextButton")
  476. local Title = Instance.new("TextLabel")
  477.  
  478.  
  479. spawner.Name = "spawner"
  480. spawner.Parent = game.CoreGui
  481.  
  482. Main.Name = "Main"
  483. Main.Parent = spawner
  484. Main.BackgroundColor3 = Color3.new(0.701961, 0.701961, 0.701961)
  485. Main.BorderSizePixel = 0
  486. Main.Position = UDim2.new(0, 667, 0, 228)
  487. Main.Size = UDim2.new(0, 266, 0, 244)
  488. Main.Active = true
  489. Main.Draggable = true
  490.  
  491. ItemFrame.Name = "ItemFrame"
  492. ItemFrame.Parent = Main
  493. ItemFrame.BackgroundColor3 = Color3.new(0.317647, 0.317647, 0.317647)
  494. ItemFrame.BorderSizePixel = 0
  495. ItemFrame.Position = UDim2.new(0, 56, 0, 76)
  496. ItemFrame.Size = UDim2.new(0, 155, 0, 92)
  497. ItemFrame.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  498. ItemFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  499. ItemFrame.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png"
  500.  
  501. ItemSearch.Name = "ItemSearch"
  502. ItemSearch.Parent = Main
  503. ItemSearch.BackgroundColor3 = Color3.new(0.533333, 0.533333, 0.533333)
  504. ItemSearch.BorderSizePixel = 0
  505. ItemSearch.Position = UDim2.new(0, 56, 0, 53)
  506. ItemSearch.Size = UDim2.new(0, 155, 0, 25)
  507. ItemSearch.Font = Enum.Font.SourceSansBold
  508. ItemSearch.FontSize = Enum.FontSize.Size14
  509. ItemSearch.Text = "Search for an item!"
  510. ItemSearch.TextColor3 = Color3.new(1, 1, 1)
  511. ItemSearch.TextScaled = true
  512. ItemSearch.TextSize = 14
  513. ItemSearch.TextWrapped = true
  514.  
  515. SpawnButton.Name = "SpawnButton"
  516. SpawnButton.Parent = Main
  517. SpawnButton.BackgroundColor3 = Color3.new(0.027451, 1, 0.482353)
  518. SpawnButton.BorderSizePixel = 0
  519. SpawnButton.Position = UDim2.new(0, 34, 0, 186)
  520. SpawnButton.Size = UDim2.new(0, 199, 0, 35)
  521. SpawnButton.ZIndex = 2
  522. SpawnButton.AutoButtonColor = false
  523. SpawnButton.Font = Enum.Font.ArialBold
  524. SpawnButton.FontSize = Enum.FontSize.Size14
  525. SpawnButton.Text = "SPAWN"
  526. SpawnButton.TextColor3 = Color3.new(1, 1, 1)
  527. SpawnButton.TextScaled = true
  528. SpawnButton.TextSize = 14
  529. SpawnButton.TextWrapped = true
  530.  
  531. Title.Name = "Title"
  532. Title.Parent = Main
  533. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  534. Title.BackgroundTransparency = 1
  535. Title.BorderSizePixel = 0
  536. Title.Size = UDim2.new(0, 266, 0, 30)
  537. Title.Font = Enum.Font.SourceSansBold
  538. Title.FontSize = Enum.FontSize.Size14
  539. Title.Text = "DeadWinter"
  540. Title.TextColor3 = Color3.new(1, 1, 1)
  541. Title.TextScaled = true
  542. Title.TextSize = 14
  543. Title.TextWrapped = true
  544.  
  545. local backgroundObjects = Instance.new('Folder', spawner.Main)
  546. backgroundObjects.Name = 'BackgroundObjects'
  547.  
  548. local SpawnButton = Instance.new("TextButton", backgroundObjects)
  549. SpawnButton.Name = "SpawnButton"
  550. SpawnButton.Parent = game.CoreGui.spawner.Main.BackgroundObjects
  551. SpawnButton.BackgroundColor3 = Color3.new(0.0196078, 0.729412, 0.34902)
  552. SpawnButton.BorderSizePixel = 0
  553. SpawnButton.Position = UDim2.new(0, 34, 0, 193)
  554. SpawnButton.Size = UDim2.new(0, 199, 0, 35)
  555. SpawnButton.AutoButtonColor = false
  556. SpawnButton.Font = Enum.Font.SourceSans
  557. SpawnButton.FontSize = Enum.FontSize.Size14
  558. SpawnButton.Text = ""
  559. SpawnButton.TextSize = 14
  560.  
  561. local gui = spawner.Main
  562. local box = gui:WaitForChild('ItemSearch')
  563. local items = gui:WaitForChild('ItemFrame')
  564. local path = Game.Lighting.assets.itemModels
  565. local btn = gui:WaitForChild('SpawnButton')
  566. local pos = gui:WaitForChild('BackgroundObjects').SpawnButton.Position
  567.  
  568.  
  569. local function search(text)
  570. local items = {}
  571. for i, v in next, path:GetChildren() do
  572. if text:upper() == v.Name:sub(1, string.len(text)):upper() then
  573. table.insert(items, v.Name)
  574. end
  575. end
  576. return items
  577. end
  578.  
  579. local function bind(thing, f)
  580. thing.MouseButton1Click:connect(function()
  581. f()
  582. end)
  583. end
  584.  
  585. box.Changed:connect(function()
  586. local list = search(box.Text)
  587. if box.Text:gsub("", "") == "" then
  588. items.CanvasSize = UDim2.new(0, 0, 0, 0)
  589. items:ClearAllChildren()
  590. return
  591. end
  592. items.CanvasSize = UDim2.new(0, 0, 0, 0)
  593. items:ClearAllChildren()
  594. for i, v in next, list do
  595. local yPos = ((20 * i) - 20)
  596. local s = Instance.new('TextButton', items)
  597. s.BorderSizePixel = 0
  598. s.Font = Enum.Font.ArialBold
  599. s.TextScaled = true
  600. s.Text = v
  601. s.Name = v
  602. s.BackgroundColor3 = Color3.fromRGB(211, 211, 211)
  603. s.TextColor3 = Color3.new(0, 0, 0)
  604. s.Size = UDim2.new(0, 155, 0, 20)
  605. s.Position = UDim2.new(0, 0, 0, yPos)
  606. bind(s, function()
  607. box.Text = s.Text
  608. items:ClearAllChildren()
  609. items.CanvasSize = UDim2.new(0, 0, 0, 0)
  610. end)
  611. end
  612. items.CanvasSize = UDim2.new(0, 0, 0, (20 * #list))
  613. end)
  614.  
  615. local People = game.Players.LocalPlayer.Name
  616. btn.MouseButton1Click:connect(function()
  617. game.Workspace.resources.events.createItemInWorld:FireServer(49,box.Text,Game.Workspace[People].Torso.CFrame,2000000000)
  618. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement