#y so laggy

1 messages · Page 1 of 1 (latest)

dim elm
#

script under coin model

local Coin = script.Parent
local Players = game:GetService("Players")
local CoinTouched = game:GetService("ReplicatedStorage").CoinTouched
local collected = false
Coin.Touched:Connect(function(plr)
    if collected then return end
    collected = true
    local person = Players:GetPlayerFromCharacter(plr.Parent)
    if person then
        CoinTouched:Fire(person, Coin)
    end
end)

script in server script service

local Players = game:GetService("Players")
local CoinTouched = game:GetService("ReplicatedStorage").CoinTouched
CoinTouched.Event:Connect(function(plr, Coin)
    game:GetService("Debris"):AddItem(Coin, 0.1)
    plr:WaitForChild("leaderstats"):WaitForChild("Coins").Value += 1
end)

why it so laggy when coin break plz help :(

real mauve
#

first off, you forgot put the return thing in the line 6

candid sage
candid sage
candid sage
#

i started first crying

dim elm
#

i fix that thx but it still laggy

candid sage
#

dies cutely

real mauve
#

:3c

candid sage
dim elm
#

i tried that earlier and it only printed one :3 and only increase my score by 1

candid sage
#

roblox is known to lag when destroying parts

#

try it in the live game

#

if it doesnt lag its fine

dim elm
#

ok

dim elm
steel minnowBOT
#

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

dim elm
#

IT NO LAG

candid sage
#

ye

#

it ok vro

slow terrace
#

Bro

#

If its what i think it is

#

😭