C00lkidd27

Aliens Leader Moveset

Oct 19th, 2024
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.09 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character or player.CharacterAdded:Wait()
  3. local uis = game:GetService("UserInputService")
  4. local rs = game:GetService("RunService")
  5. local ts = game:GetService("TweenService")
  6. local lighting = game:GetService("Lighting")
  7.  
  8. -- Koruma kalkanı ve ışınlanma
  9. local isFieldActive = false
  10. local forceField = nil
  11. local auraActive = false
  12. local timeStopped = false
  13.  
  14. -- Ses Id'leri
  15. local soundIds = {
  16. Theme1 = 112220432725541,
  17. Talk1 = 1847811364,
  18. Talk2 = 1847811400,
  19. Theme2 = 1846574038,
  20. Theme3 = 1838820399,
  21. GalacticSound = 1839290228,
  22. GojoDomain = 6667923288,
  23. SukunaDomain = 6590147536,
  24. MahitoDomain = 18269037904,
  25. CaveSound = 3173566193
  26. }
  27.  
  28. -- Koruma kalkanını oluşturma
  29. local function createForceField()
  30. if not isFieldActive then
  31. isFieldActive = true
  32. forceField = Instance.new("Part")
  33. forceField.Shape = Enum.PartType.Ball
  34. forceField.Size = Vector3.new(15, 15, 15)
  35. forceField.Color = Color3.fromRGB(0, 255, 0)
  36. forceField.Material = Enum.Material.Neon
  37. forceField.Transparency = 0.7
  38. forceField.Anchored = true
  39. forceField.CanCollide = false
  40. forceField.Parent = game.Workspace
  41. forceField.CFrame = character.HumanoidRootPart.CFrame
  42.  
  43. forceField.Touched:Connect(function(hit)
  44. local hitPlayer = game.Players:GetPlayerFromCharacter(hit.Parent)
  45. if hitPlayer and hitPlayer ~= player then
  46. local direction = (hit.Parent.HumanoidRootPart.Position - character.HumanoidRootPart.Position).unit
  47. hit.Parent.HumanoidRootPart.Velocity = direction * 50
  48. end
  49. end)
  50.  
  51. delay(15, function()
  52. if forceField then
  53. forceField:Destroy()
  54. forceField = nil
  55. isFieldActive = false
  56. end
  57. end)
  58. end
  59. end
  60.  
  61. -- Koruma kalkanını yok etme
  62. local function removeForceField()
  63. if isFieldActive and forceField then
  64. forceField:Destroy()
  65. forceField = nil
  66. isFieldActive = false
  67. end
  68. end
  69.  
  70. -- Enerji topu oluşturma
  71. local function createEnergyBall()
  72. local energyBall = Instance.new("Part")
  73. energyBall.Shape = Enum.PartType.Ball
  74. energyBall.Size = Vector3.new(10, 10, 10)
  75. energyBall.Color = Color3.fromRGB(0, 255, 0)
  76. energyBall.Material = Enum.Material.Neon
  77. energyBall.CanCollide = false
  78. energyBall.CFrame = character.HumanoidRootPart.CFrame + character.HumanoidRootPart.CFrame.LookVector * 5
  79. energyBall.Anchored = false
  80. energyBall.Velocity = character.HumanoidRootPart.CFrame.LookVector * 100
  81. energyBall.Parent = game.Workspace
  82.  
  83. energyBall.Touched:Connect(function(hit)
  84. local hitPlayer = game.Players:GetPlayerFromCharacter(hit.Parent)
  85. if hitPlayer and hitPlayer ~= player then
  86. -- Toksik efekt
  87. end
  88. end)
  89.  
  90. game.Debris:AddItem(energyBall, 5)
  91. end
  92.  
  93. -- Zaman durdurma
  94. local function stopTime()
  95. if not timeStopped then
  96. timeStopped = true
  97. lighting.Ambient = Color3.fromRGB(0, 255, 0)
  98.  
  99. rs:BindToRenderStep("StopTime", Enum.RenderPriority.Camera.Value + 1, function()
  100. for _, object in pairs(game.Workspace:GetDescendants()) do
  101. if object:IsA("BasePart") then
  102. object.Velocity = Vector3.new(0, 0, 0)
  103. object.RotVelocity = Vector3.new(0, 0, 0)
  104. end
  105. end
  106. end)
  107.  
  108. delay(15, function()
  109. rs:UnbindFromRenderStep("StopTime")
  110. lighting.Ambient = Color3.fromRGB(255, 255, 255)
  111. timeStopped = false
  112. end)
  113. end
  114. end
  115.  
  116. -- Aura oluşturma
  117. local function createAura()
  118. if not auraActive then
  119. auraActive = true
  120. for _, part in pairs(character:GetChildren()) do
  121. if part:IsA("BasePart") then
  122. local aura = Instance.new("ParticleEmitter")
  123. aura.Texture = "rbxassetid://[Particle_Texture_ID]" -- Partikül dokusu
  124. aura.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0))
  125. aura.Lifetime = NumberRange.new(1, 2)
  126. aura.Rate = 100
  127. aura.Parent = part
  128. end
  129. end
  130.  
  131. delay(10, function()
  132. for _, part in pairs(character:GetChildren()) do
  133. if part:IsA("BasePart") then
  134. local aura = part:FindFirstChildWhichIsA("ParticleEmitter")
  135. if aura then
  136. aura:Destroy()
  137. end
  138. end
  139. end
  140. auraActive = false
  141. end)
  142. end
  143. end
  144.  
  145. -- GUI oluşturma
  146. local function createGui()
  147. local screenGui = Instance.new("ScreenGui")
  148. screenGui.Parent = player.PlayerGui
  149.  
  150. local panel = Instance.new("Frame")
  151. panel.Size = UDim2.new(0, 200, 0, 300)
  152. panel.Position = UDim2.new(0.5, -100, 0.5, -150)
  153. panel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  154. panel.Visible = true
  155. panel.Parent = screenGui
  156.  
  157. local toggleButton = Instance.new("TextButton")
  158. toggleButton.Text = "Toggle GUI"
  159. toggleButton.Size = UDim2.new(0, 100, 0, 50)
  160. toggleButton.Position = UDim2.new(0.5, -50, 0, 10)
  161. toggleButton.Parent = screenGui
  162.  
  163. local stopButton = Instance.new("TextButton")
  164. stopButton.Text = "Stop Sound"
  165. stopButton.Size = UDim2.new(0, 100, 0, 50)
  166. stopButton.Position = UDim2.new(0.5, -50, 0.9, -50)
  167. stopButton.Parent = panel
  168.  
  169. stopButton.MouseButton1Click:Connect(function()
  170. for _, sound in pairs(game.Workspace:GetDescendants()) do
  171. if sound:IsA("Sound") then
  172. sound:Stop()
  173. end
  174. end
  175. end)
  176.  
  177. local yPos = 0.1
  178. for name, soundId in pairs(soundIds) do
  179. local button = Instance.new("TextButton")
  180. button.Text = name
  181. button.Size = UDim2.new(0, 100, 0, 50)
  182. button.Position = UDim2.new(0.5, -50, yPos, -50)
  183. button.Parent = panel
  184.  
  185. button.MouseButton1Click:Connect(function()
  186. local sound = Instance.new("Sound")
  187. sound.SoundId = "rbxassetid://" .. soundId
  188. sound.Parent = workspace
  189. sound:Play()
  190. end)
  191.  
  192. yPos = yPos + 0.1
  193. end
  194.  
  195. toggleButton.MouseButton1Click:Connect(function()
  196. panel.Visible = not panel.Visible
  197. toggleButton.Visible = not toggleButton.Visible
  198. end)
  199. end
  200.  
  201. -- Tuşlara basıldığında hangi fonksiyonların çalışacağını ayarlama
  202. uis.InputBegan:Connect(function(input, gameProcessed)
  203. if gameProcessed then return end
  204.  
  205. if input.KeyCode == Enum.KeyCode.F then
  206. if isFieldActive then
  207. removeForceField()
  208. else
  209. createForceField()
  210. end
  211. elseif input.KeyCode == Enum.KeyCode.T then
  212. stopTime()
  213. elseif input.KeyCode == Enum.KeyCode.C then
  214. createAura()
  215. elseif input.KeyCode == Enum.KeyCode.One then
  216. createEnergyBall()
  217. end
  218. end)
  219.  
  220. -- GUI'yi oluştur
  221. createGui()
  222.  
Advertisement
Add Comment
Please, Sign In to add comment