1212
This commit is contained in:
1 parent
ec69c6c8d7
commit
ccd24dc5ec
10 files changed
+500
-340
No files matched your search
@@ -788,13 +788,16 @@ local function onCast(player, power)
|
||||
return
|
||||
end
|
||||
local world = Config.WorldAt(hrp.Position)
|
||||
local target, dist = nil, 0
|
||||
if world then
|
||||
target, dist = findWater(hrp, world, power)
|
||||
local can = Config.CanCastFrom(world, hrp.Position)
|
||||
if can ~= true then
|
||||
remote:FireClient(player, "CastFail")
|
||||
notify(player, can, Color3.fromRGB(255, 200, 120))
|
||||
return
|
||||
end
|
||||
local target, dist = findWater(hrp, world, power)
|
||||
if not target then
|
||||
remote:FireClient(player, "CastFail")
|
||||
notify(player, world and "Подойди ближе к воде (или к лунке)!" or "Здесь нет рыбы — иди в один из миров 🌍", Color3.fromRGB(255, 200, 120))
|
||||
notify(player, "Подойди ближе к воде (или к лунке)!", Color3.fromRGB(255, 200, 120))
|
||||
return
|
||||
end
|
||||
if #data.items >= bagCapacity(player, data) then
|
||||
|
||||
Reference in new issue
Block a user