Advertisement
idkwhatiam

lucky card

May 31st, 2019
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. --script based off "wait till its your magic number simulator".--
  2. player = owner
  3. backpack = player.Backpack
  4.  
  5. --CREATE THE CARD--
  6. number = Instance.new("Tool")
  7. number.Parent = backpack
  8. number.GripPos = Vector3.new(0.03, 0, 0)
  9. number.GripForward = Vector3.new(-0.976, 0, -0.217)
  10. number.GripRight = Vector3.new(0.217, 0, -0.976)
  11. number.GripUp = Vector3.new(0, 2, 0)
  12. handle = Instance.new("Part")
  13. handle.Parent = number
  14. handle.Size = Vector3.new(0.1, 0.1, 0.1)
  15. handle.Anchored = false
  16. handle.CanCollide = false
  17. handle.Transparency = 0
  18. handle.Name = "Handle"
  19. mhandle = Instance.new("SpecialMesh")
  20. mhandle.Parent = handle
  21. mhandle.MeshId = "rbxassetid://2112332149"
  22. mhandle.Scale = Vector3.new(0.15, 0.1, 0.15)
  23. mhandle.Offset = Vector3.new(0, 0.5, 0)
  24. decal = Instance.new("Decal")
  25. decal.Parent = handle
  26. decal.Texture = "rbxassetid://3240803473"
  27. decal.Face = "Top"
  28. decal.Transparency = 0
  29.  
  30. local sur = Instance.new("BillboardGui", handle)
  31. sur.Name = "Billboard"
  32. sur.Adornee = handle
  33. sur.Size = UDim2.new(10, 0, 5, 0)
  34. sur.StudsOffset = Vector3.new(0, 5, 0)
  35. local text = Instance.new("TextLabel", sur)
  36. text.Text = math.random(0, 100)
  37. text.Size = UDim2.new(1, 0, 1, 0)
  38. text.TextScaled = true
  39. text.BackgroundTransparency = 1
  40. text.Font = Enum.Font.SourceSansLight
  41. text.TextColor3 = Color3.new(1, 1, 1)
  42. text.TextStrokeTransparency = 0
  43. text.TextTransparency = 0
  44.  
  45. number.Equipped:Connect(function()
  46. text.Text = math.random(0, 100)
  47. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement