Cakey3101

Multiplier Script

May 1st, 2025
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | Source Code | 0 0
  1. local Players = game:GetService("Players")
  2.  
  3. local function CreateMultipliers(Player: Player)
  4.     local RingMultiplier = Instance.new("IntValue", Player)
  5.     RingMultiplier.Name = "RingMultiplier"
  6.     RingMultiplier.Value = 1
  7.    
  8.     local XPMultiplier = Instance.new("IntValue", Player)
  9.     XPMultiplier.Name = "XPMultiplier"
  10.     XPMultiplier.Value = 1
  11.    
  12.     local RebirthValue = Player:WaitForChild("leaderstats"):WaitForChild("Rebirth")
  13.    
  14.     XPMultiplier.Value = 1 + RebirthValue.Value
  15.    
  16.     RebirthValue.Changed:Connect(function()
  17.         XPMultiplier.Value = 1 + RebirthValue.Value
  18.     end)
  19. end
  20.  
  21. Players.PlayerAdded:Connect(CreateMultipliers)
Tags: robloxstudio
Advertisement
Add Comment
Please, Sign In to add comment