ubigab

slender

Jan 1st, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.64 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Mouse = Player:GetMouse()
  3. local GameValues = game.Workspace.GameValues
  4.  
  5. -- Objects
  6.  
  7. local SISGUI = Instance.new("ScreenGui")
  8. local Slender = Instance.new("TextLabel")
  9. local Credits = Instance.new("TextLabel")
  10.  
  11. -- Properties
  12.  
  13. SISGUI.Name = "SISGUI"
  14. SISGUI.Parent = game.Players.LocalPlayer.PlayerGui
  15. SISGUI.ResetOnSpawn = false
  16.  
  17. Slender.Name = "Slender"
  18. Slender.Parent = SISGUI
  19. Slender.BackgroundColor3 = Color3.new(0, 0.666667, 1)
  20. Slender.BackgroundTransparency = 1
  21. Slender.Position = UDim2.new(0, 0, 0.960784316, 0)
  22. Slender.Size = UDim2.new(0, 290, 0, 16)
  23. Slender.Font = Enum.Font.SourceSans
  24. Slender.FontSize = Enum.FontSize.Size24
  25. Slender.Text = "Current Slender : "..GameValues.CurrentSlender.Value
  26. Slender.TextColor3 = Color3.new(0, 0.666667, 1)
  27. Slender.TextSize = 20
  28. Slender.TextXAlignment = Enum.TextXAlignment.Left
  29.  
  30. Credits.Name = "Credits"
  31. Credits.Parent = SISGUI
  32. Credits.BackgroundColor3 = Color3.new(0, 0.666667, 1)
  33. Credits.BackgroundTransparency = 1
  34. Credits.Position = UDim2.new(0.593556404, 0, 0.960784316, 0)
  35. Credits.Size = UDim2.new(0, 328, 0, 16)
  36. Credits.Font = Enum.Font.SourceSans
  37. Credits.FontSize = Enum.FontSize.Size24
  38. Credits.Text = "Created By VeteranBlue V3rm : Exit0t"
  39. Credits.TextColor3 = Color3.new(0, 0.666667, 1)
  40. Credits.TextSize = 20
  41.  
  42. game.Workspace.GameValues.CurrentSlender.Changed:Connect(function()
  43. Slender.Text = "Current Slender : "..game.Workspace.GameValues.CurrentSlender.Value
  44. end)
  45.  
  46. local function GetGens()
  47. local Char = Player.Character
  48. local Hrp = Char.HumanoidRootPart
  49. local Map = game.Workspace.MAP
  50. local Gen = Map.GENS:GetChildren()
  51. local Add = 0
  52. for i, v in pairs(Gen)do
  53. Add = Add + v.GLOW.Size.Z
  54. v.GLOW.CFrame = Hrp.CFrame + Vector3.new(0,0,Add)
  55. end
  56. end
  57.  
  58. local function GetPages()
  59. local Char = Player.Character
  60. local Hrp = Char.HumanoidRootPart
  61. local Map = game.Workspace.MAP
  62. local Pages = Map.Pages:GetChildren()
  63. for i, v in pairs(Pages)do
  64. if v:IsA("Part") and v.Transparency == 0 then
  65. -- Objects
  66.  
  67. local BGUI = Instance.new("BillboardGui")
  68. local Shower = Instance.new("TextLabel")
  69.  
  70. -- Properties
  71.  
  72. BGUI.Name = "BGUI"
  73. BGUI.Parent = v
  74. BGUI.AlwaysOnTop = true
  75. BGUI.Size = UDim2.new(0, 50, 0, 50)
  76.  
  77. Shower.Name = "Shower"
  78. Shower.Parent = BGUI
  79. Shower.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  80. Shower.Size = UDim2.new(0, 50, 0, 50)
  81. Shower.Font = Enum.Font.SourceSans
  82. Shower.FontSize = Enum.FontSize.Size32
  83. Shower.Text = "Page"
  84. Shower.TextColor3 = Color3.new(0, 0.666667, 1)
  85. Shower.TextSize = 30
  86. v.Changed:Connect(function()
  87. if v.Transparency == 1 then
  88. BGUI:Destroy()
  89. end
  90. end)
  91. end
  92. end
  93. end
  94.  
  95. local function TeleportToPage()
  96. local Char = Player.Character
  97. local Map = game.Workspace.MAP
  98. local Pages = Map.Pages:GetChildren()
  99. for i, v in pairs(Pages)do
  100. if v:IsA("Part") and v.Transparency == 0 then
  101. Char.HumanoidRootPart.CFrame = v.CFrame + (v.CFrame.lookVector*3)
  102. end
  103. end
  104. end
  105.  
  106. local function TeleportToNextPlayer()
  107.  
  108. end
  109.  
  110. local function TeleportToPlayer()
  111. local Citizens = game.Workspace.GameEvents.Citizens:GetChildren()
  112. for i, v in pairs(Citizens)do
  113. if v.died.Value == false then
  114. local Victim = game.Players:FindFirstChild(v.Name)
  115. if Victim ~= nil then
  116. local VChar = Victim.Character
  117. if VChar ~= nil then
  118. Player.Character.HumanoidRootPart.CFrame = VChar.HumanoidRootPart.CFrame + (VChar.HumanoidRootPart.CFrame.lookVector*3)
  119. end
  120. end
  121. end
  122. end
  123. end
  124.  
  125. local function MakeSlenderVisible()
  126. local GameValues = game.Workspace.GameValues
  127. local CurrentSlender = GameValues.CurrentSlender.Value
  128. local Players = game.Players:GetPlayers()
  129. for i, v in pairs(Players)do
  130. if v.Character~= nil and v.Name == CurrentSlender then
  131. -- Objects
  132.  
  133. local BGUI = Instance.new("BillboardGui")
  134. local Shower = Instance.new("TextLabel")
  135.  
  136. -- Properties
  137.  
  138. BGUI.Name = "BGUI"
  139. BGUI.Parent = v.Character.HumanoidRootPart
  140. BGUI.AlwaysOnTop = true
  141. BGUI.Size = UDim2.new(0, 200, 0, 50)
  142.  
  143. Shower.Name = "Shower"
  144. Shower.Parent = BGUI
  145. Shower.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  146. Shower.Size = UDim2.new(0, 200, 0, 50)
  147. Shower.Font = Enum.Font.SourceSans
  148. Shower.FontSize = Enum.FontSize.Size32
  149. Shower.Text = "Slender"
  150. Shower.TextColor3 = Color3.new(0, 0.666667, 1)
  151. Shower.TextSize = 30
  152. for e, x in pairs(v.Character:GetDescendants())do
  153. if x:IsA("Part") or x:IsA("MeshPart") then
  154. x.Transparency = 0
  155. end
  156. end
  157. end
  158. end
  159. end
  160.  
  161. Mouse.KeyDown:Connect(function(Key)
  162. if Key == "z" then
  163. GetGens()
  164. elseif Key == "x" then
  165. GetPages()
  166. elseif Key == "v" then
  167. MakeSlenderVisible()
  168. elseif Key == "c" then
  169. Mouse.Target:Destroy()
  170. elseif Key == "b" then
  171. TeleportToPage()
  172. elseif Key == "e" then
  173. TeleportToPlayer()
  174. end
  175.  
  176. end)
Add Comment
Please, Sign In to add comment