Advertisement
zhangfengshan

碰撞

Feb 24th, 2023
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Close = Instance.new("TextButton")
  7. local Open2 = Instance.new("ScreenGui")
  8. local Open = Instance.new("TextButton")
  9. local FightingGui = Instance.new("ScreenGui")
  10. local main = Instance.new("Frame")
  11. local Cre = Instance.new("TextLabel")
  12. local HitBox = Instance.new("TextBox")
  13. local Red = Instance.new("TextBox")
  14. local Green = Instance.new("TextBox")
  15. local Blue = Instance.new("TextBox")
  16. local TextLabel = Instance.new("TextLabel")
  17.  
  18. --Properties:
  19.  
  20. FightingGui.Name = "FightingGui"
  21. FightingGui.Parent = game.CoreGui
  22. FightingGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  23.  
  24.  
  25. Open2.Name = "Tools"
  26. Open2.Parent = game.CoreGui
  27. Open2.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  28.  
  29. Open.Name = "Open"
  30. Open.Parent = Open2
  31. Open.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  32. Open.Position = UDim2.new(0, 0, 0.451871663, 0)
  33. Open.Size = UDim2.new(0, 78, 0, 50)
  34. Open.Font = Enum.Font.SourceSans
  35. Open.Text = "Open"
  36. Open.TextColor3 = Color3.fromRGB(250, 0, 0)
  37. Open.TextScaled = true
  38. Open.TextSize = 14.000
  39. Open.TextWrapped = true
  40. Open.MouseButton1Down:Connect(function()
  41. FightingGui.Enabled = true
  42. end)
  43.  
  44. Close.Name = "Close"
  45. Close.Parent = main
  46. Close.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  47. Close.Position = UDim2.new(1, 0, -0.226244345, 0)
  48. Close.Size = UDim2.new(0, 60, 0, 50)
  49. Close.Font = Enum.Font.SourceSans
  50. Close.Text = "X"
  51. Close.TextColor3 = Color3.fromRGB(0, 0, 0)
  52. Close.TextScaled = true
  53. Close.TextSize = 14.000
  54. Close.TextWrapped = true
  55. Close.MouseButton1Down:Connect(function()
  56. FightingGui.Enabled = false
  57. end)
  58.  
  59. main.Parent = FightingGui
  60. main.Active = true
  61. main.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  62. main.Position = UDim2.new(0.073011741, 0, 0.237333342, 0)
  63. main.Size = UDim2.new(0, 273, 0, 221)
  64. main.Draggable = true
  65.  
  66. Cre.Name = "Cre"
  67. Cre.Parent = main
  68. Cre.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  69. Cre.Position = UDim2.new(0, 0, -0.226244345, 0)
  70. Cre.Size = UDim2.new(0, 273, 0, 50)
  71. Cre.Font = Enum.Font.SourceSans
  72. Cre.Text = "由WarriorRoberr制作的脚本"
  73. Cre.TextColor3 = Color3.fromRGB(0, 0, 0)
  74. Cre.TextScaled = true
  75. Cre.TextSize = 14.000
  76. Cre.TextWrapped = true
  77.  
  78. HitBox.Name = "HitBox"
  79. HitBox.Parent = main
  80. HitBox.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  81. HitBox.Position = UDim2.new(0.0586080588, 0, 0.0995475128, 0)
  82. HitBox.Size = UDim2.new(0, 65, 0, 50)
  83. HitBox.Font = Enum.Font.SourceSans
  84. HitBox.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  85. HitBox.PlaceholderText = "Hitbox"
  86. HitBox.Text = ""
  87. HitBox.TextColor3 = Color3.fromRGB(0, 0, 0)
  88. HitBox.TextScaled = true
  89. HitBox.TextSize = 14.000
  90. HitBox.TextWrapped = true
  91.  
  92. Red.Name = "Red"
  93. Red.Parent = main
  94. Red.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  95. Red.Position = UDim2.new(0.485832304, 0, 0.0995475128, 0)
  96. Red.Size = UDim2.new(0, 37, 0, 31)
  97. Red.Font = Enum.Font.SourceSans
  98. Red.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  99. Red.PlaceholderText = "红色"
  100. Red.Text = ""
  101. Red.TextColor3 = Color3.fromRGB(0, 0, 0)
  102. Red.TextSize = 14.000
  103.  
  104. Green.Name = "Green"
  105. Green.Parent = main
  106. Green.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  107. Green.Position = UDim2.new(0.665319502, 0, 0.0995475128, 0)
  108. Green.Size = UDim2.new(0, 37, 0, 31)
  109. Green.Font = Enum.Font.SourceSans
  110. Green.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  111. Green.PlaceholderText = "格林(姓氏);绿色的"
  112. Green.Text = ""
  113. Green.TextColor3 = Color3.fromRGB(0, 0, 0)
  114. Green.TextSize = 14.000
  115.  
  116. TextLabel.Parent = main
  117. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  118. TextLabel.Position = UDim2.new(0.47118023, 0, 0.325791866, 0)
  119. TextLabel.Size = UDim2.new(0, 140, 0, 37)
  120. TextLabel.Font = Enum.Font.SourceSans
  121. TextLabel.Text = "颜色;色彩;色调"
  122. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  123. TextLabel.TextScaled = true
  124. TextLabel.TextSize = 14.000
  125. TextLabel.TextWrapped = true
  126.  
  127. Blue.Name = "Blue"
  128. Blue.Parent = main
  129. Blue.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  130. Blue.Position = UDim2.new(0.837480664, 0, 0.0995475128, 0)
  131. Blue.Size = UDim2.new(0, 37, 0, 31)
  132. Blue.Font = Enum.Font.SourceSans
  133. Blue.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  134. Blue.PlaceholderText = "蓝色"
  135. Blue.Text = ""
  136. Blue.TextColor3 = Color3.fromRGB(0, 0, 0)
  137. Blue.TextSize = 14.000
  138. game:GetService('RunService').RenderStepped:connect(function()
  139. for i,v in next, game:GetService('Players'):GetPlayers() do
  140. if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  141. v.Character.HumanoidRootPart.Size = Vector3.new(HitBox.Text,HitBox.Text,HitBox.Text)
  142. v.Character.HumanoidRootPart.Transparency = 0.8
  143. v.Character.HumanoidRootPart.Color = Color3.new(Red.Text,Green.Text,Blue.Text)
  144. v.Character.HumanoidRootPart.Material = "Neon"
  145. v.Character.HumanoidRootPart.CanCollide = false
  146. end
  147. end
  148. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement