Advertisement
JW2

A-60

JW2
Jan 1st, 2023 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.37 KB | None | 0 0
  1. -- a-60 entity -- -- and crucifix (only works for a-60 entity) --
  2. print("this is made by Jackie_Wolfy2.")
  3. local cantouch = false
  4. local entity = Instance.new("Part")
  5. local model = Instance.new("Model")
  6. local player = game.Players.LocalPlayer
  7. local character = player.Character
  8. local light = Instance.new("PointLight")
  9. model.PrimaryPart = entity
  10. entity.Size = Vector3.new(4, 6, 4)
  11. entity.Transparency = 1
  12. entity.CanCollide = false
  13. entity.Anchored = true
  14. light.Parent = entity
  15. light.Brightness = 100
  16. light.Color = Color3.new(255,0,0)
  17. local gui = Instance.new("BillboardGui")
  18. gui.Parent = entity
  19. local image = Instance.new("ImageLabel")
  20. gui.Size = UDim2.new(5,0,5,0)
  21. image.Parent = gui
  22. image.ImageTransparency = 0
  23. image.BackgroundTransparency = 1
  24. image.Size = UDim2.new(1,0,1,0)
  25. image.Image = "http://www.roblox.com/asset/?id=11287256498"
  26. local mouse = player:GetMouse()
  27. model.Parent = workspace
  28. model.Name = "A-60"
  29. entity.Name = ""
  30. entity.Parent = model
  31. local tool = Instance.new("Tool")
  32. tool.Name = "Crucifix"
  33. tool.TextureId = "http://www.roblox.com/asset/?id=11713204957"
  34. local Handle = Instance.new("Part")
  35. Handle.Name = "Handle"
  36. local mesh = Instance.new("SpecialMesh")
  37. mesh.Parent = Handle
  38. Handle.Material = Enum.Material.WoodPlanks
  39. mesh.MeshType = Enum.MeshType.FileMesh
  40. mesh.MeshId = "rbxassetid://11468548833"
  41. mesh.Scale = Vector3.new(0.0000000418, 0.000000849, 0.000000133)
  42. Handle.Parent = tool
  43. tool.Parent = player.Backpack
  44. Handle.Touched:Connect(function(hit)
  45. isCanTouch = false
  46. if hit.Parent:IsA("Model") and hit.Parent.Name == "A-60" and isCanTouch == false then
  47. isCanTouch = true
  48. local A_60 = hit.Parent
  49. local CrucifixEffect = Instance.new("Part")
  50. CrucifixEffect.Parent = A_60
  51. CrucifixEffect.BrickColor = BrickColor.Blue()
  52. CrucifixEffect.Material = Enum.Material.Neon
  53. CrucifixEffect.CFrame = CFrame.new(entity.CFrame.X,entity.CFrame.Y - 20,entity.CFrame.Z)
  54. CrucifixEffect.Size = Vector3.new(8,1,6)
  55. CrucifixEffect.Anchored = true
  56. CrucifixEffect.CanCollide = false
  57. local Weld = Instance.new("Weld")
  58. Weld.Parent = CrucifixEffect
  59. Weld.Part0 = CrucifixEffect
  60. Weld.Part1 = entity
  61. repeat
  62. entity.CFrame = CrucifixEffect.CFrame
  63. until wait(2)
  64. for i=0,1,0.1 do
  65. wait()
  66. entity.CFrame = entity.CFrame:Lerp(CFrame.new(entity.CFrame.X,entity.CFrame.Y - 40,entity.CFrame.Z),i)
  67. end
  68. wait(1)
  69. A_60:Destroy()
  70. tool:Destroy()
  71. end
  72. end)
  73. entity.Touched:Connect(function(hit)
  74. if hit.Parent:FindFirstChild("Humanoid") and not hit.Parent:FindFirstChild("Crucifix") then
  75. local gudinglightgui = Instance.new("ScreenGui")
  76. local i = Instance.new("TextLabel")
  77. gudinglightgui.Parent = player.PlayerGui
  78. i.Parent = gudinglightgui
  79. i.BackgroundColor3 = Color3.new(0,0,0)
  80. i.TextTransparency = 0
  81. i.TextColor3 = Color3.new(255,255,255)
  82. i.Text = "You know A-60 is not the same with other entitys."
  83. wait(2)
  84. gudinglightgui:Destroy()
  85. hit.Parent.Humanoid.Health = 0
  86. while wait() do
  87. player.PlayerGui.MainUI.Statistics.Death.Text = "Died to A-60"
  88. end
  89. end
  90. end)
  91. print("entity has spawn for now.")
  92. character.Humanoid.Touched:Connect(function(hit)
  93. local randomchance = math.random(0,100)
  94. print(randomchance)
  95. if hit.Parent:IsA("Model") and hit.Parent:FindFirstChild("RoomEnd") and randomchance == 100 then
  96. local sound = Instance.new("Sound")
  97. sound.SoundId = "rbxassetid://252081218"
  98. sound.Parent = workspace
  99. sound:Play()
  100. sound:Destroy()
  101. local entitysound = Instance.new("Sound")
  102. entitysound.SoundId = "rbxassetid://530591527"
  103. entitysound.Parent = entity
  104. entitysound.PlaybackSpeed = 0.1
  105. entitysound.Playing = true
  106. entitysound.Looped = true
  107. wait(4)
  108. for i=0,1,0.1 do
  109. wait()
  110. entity.CFrame = entity.CFrame:Lerp(hit.Parent.RoomEnd.CFrame,i)
  111. end
  112. wait(0.0000001)
  113. for i=0,1,0.1 do
  114. wait()
  115. entity.CFrame = entity.CFrame:Lerp(hit.Parent.RoomStart.CFrame,i)
  116. end
  117. wait(0.0000001)
  118. for i=0,1,0.1 do
  119. wait()
  120. entity.CFrame = entity.CFrame:Lerp(hit.Parent.RoomEnd.CFrame,i)
  121. wait(0.0000001)
  122. for i=0,1,0.1 do
  123. wait()
  124. entity.CFrame = entity.CFrame:Lerp(hit.Parent.RoomStart.CFrame,i)
  125. end
  126. entitysound:Destroy()
  127. model:PivotTo(hit.Parent.RoomStart.CFrame)
  128. end
  129. end
  130. end)
  131. while true do
  132. image.Rotation = 1
  133. wait(0.00000000001)
  134. image.Rotation = 8
  135. wait(0.00000000001)
  136. image.Rotation = 2
  137. wait(0.00000000001)
  138. image.Rotation = -3
  139. wait(0.00000000001)
  140. image.Rotation = -8
  141. wait(0.00000000001)
  142. image.Rotation = -1
  143. wait(0.00000000001)
  144. image.Rotation = -9
  145. wait(0.00000000001)
  146. image.Rotation = 0
  147. wait(0.00000000001)
  148. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement