#I Need Help With Scripting An Bounty System For An Weapon

25 messages · Page 1 of 1 (latest)

zealous monolith
#

so you want when someone makes a kill, he gets the bounty
and his own bounty grows?

turbid shoal
#

Yes

zealous monolith
#

thats more like a thing for #💵︱hiring
do you know at least something about scripting?
(maybe i can just help you instead of making the whole script)

turbid shoal
#

Yea I know Scripting But I The Script Doesnt Work

zealous monolith
#

what is it supposed to do?

turbid shoal
#

an bounty script for an cash register

#

its supposed to give the player that robbed the cash register bounty

zealous monolith
#

so the first error is that get.bounty (even maked red)
can you just send in the script als

#

so i can edit it?

turbid shoal
#

local canrob = true
game.Players.PlayerAdded:Connect(function(player)
script.Parent.Triggered:Connect(function(get.bounty)
if canrob == true then
local randomcash = math.random(150)
player.leaderstats.Cash.Value += randomcash
canrob = false
else
player.leaderstats.Cash.Value += 0
end
end)
end)

while true do
wait(600)
canrob = true
end

zealous monolith
#

is that script.Parent
a proximity prompt?

turbid shoal
#

script

zealous monolith
turbid shoal
#

whats with it?

weak riverBOT
#

studio** You are now Level 1! **studio

zealous monolith
#

you cant do script.Triggered

turbid shoal
#

oh

zealous monolith
#

when is it supposed to happen?

turbid shoal
#

lemme send vid

zealous monolith
#

that script should work in a proximity prompt

local canrob = true
script.Parent.Triggered:Connect(function(player)
  if canrob == true then
    local randomcash = math.random(1,150)
      player.leaderstats.Cash.Value += randomcash
      canrob = false
      wait(600)
      canrob = true
   end
 end)
turbid shoal
#

ok

zealous monolith
#

youre using a proximity prompt comfy

turbid shoal
#

didnt work it just put it into the money section of the leaderboard not the bounty

zealous monolith
#

you can also use a Attachment