#the checkponit is not working

164 messages · Page 1 of 1 (latest)

next basin
#

'''

#

ops

#

"' lua

#

osp

#

opps

lethal island
#

Workspace.Checkpoints.Checkpoint:WaitForChild("IntValue", 10)

next basin
#

ok lemme try thata

#

but the script

#

i will show

#

will be somthing my brohter helped me at

#

afk

#

(currnly its my brothers birthday!)

next basin
#
local Checkpoint = game.Workspace.Checkpoints:WaitForChild("Checkpoint")
local Player = game.Players.LocalPlayer

Checkpoint.Touched:Connect(function()
    Player.leaderstats.checkPoints.Value = Checkpoint:WaitForChild("IntValue").Value
end) 
``` this is the scrip
#

t

#

ops

#

srry

#

ima fix it

next basin
#

i tryed it but it didnt work

#
local Checkpoint = game.Workspace.Checkpoints:WaitForChild("Checkpoint")
local Player = game.Players.LocalPlayer

Checkpoint.Touched:Connect(function()
    Player.leaderstats.checkPoints.Value = Checkpoint:WaitForChild("IntValue").Value
end)
#

this is the script

lethal island
#

Are you sure the error didn’t go away when you changed the line?

next basin
#

lemme check

lethal island
#

Also, you changed the lines yet never added the fix…

#

Eh ypu should be smart enough to hit 3 buttons

next basin
#

wait

#

wait wait

#

it popped me up this messge: value of type nil cannot be converted to a number

#

and im making a studs jump obby

#

heres the pic

lethal island
#

You really don’t know how to deal with some basic nil errors?

#

I guess the s1 standards have yet to go up

proven basin
#

It means it cannot find the object/it doesn’t exist

next basin
#

oh kk

woeful fjord
#

@lethal island stop cooking these kids 💀

lethal island
next basin
lethal island
woeful fjord
#

i mean he has a point

next basin
#

him?

proven basin
#

Damnnn

woeful fjord
#

yes him

#

is your "IntValue" actually called "IntValue"

next basin
#

yes

proven basin
next basin
woeful fjord
#

send me your explorer with the int value in it

next basin
#

yes

#

ok

woeful fjord
#

and your entire code

next basin
#

ok

#

ops

woeful fjord
#

lmao workspace in lower case

next basin
#
local Checkpoint = game.Workspace.Checkpoints:WaitForChild("Checkpoint")
local Player = game.Players.LocalPlayer

Checkpoint.Touched:Connect(function()
    Player.leaderstats.checkPoints.Value = Workspace.Checkpoints.Checkpoint:WaitForChild("IntValue", 10)
end)
#

heres the code

woeful fjord
#
workspace
--or
game.workspace
next basin
#

oh kk

#

leme try

proven basin
woeful fjord
#

yep that ^

next basin
#

it removing all the errors

woeful fjord
#

really?!

next basin
#

thats in that line

proven basin
#

it’s a warning

next basin
#

yeah

woeful fjord
#

almost like i knew the problem lmao

next basin
#

lol

proven basin
#

Workspace is deprecated

proven basin
next basin
#

ok

woeful fjord
#

how did bro get level 1 💀

proven basin
next basin
#

its not working

ancient duneBOT
#

studio** You are now Level 15! **studio

next basin
#

umm it gave me an orange text (i forgo what its called💀)

#

heres is it

#

value of type Instance cannot be converted to a number

proven basin
next basin
#

oh kk

proven basin
#

this is really simple stuff

#

How are you scripter 1

woeful fjord
#
local Checkpoint = game.Workspace.Checkpoints:WaitForChild("Checkpoint")
local Player = game.Players.LocalPlayer
local Leaderstats = Player:FindFirstChild("leaderstats")
local CheckPoint = Leaderstats.checkPoints

Checkpoint.Touched:Connect(function()
    CheckPoint.Value += 10
end)
next basin
#

oh im his lil bro im 13 years old

#

my bigger bro is 32

woeful fjord
#

and hes level 1?

next basin
#

no

woeful fjord
#

gawd dam

next basin
#

hes level 10

#

and im level one

woeful fjord
#

it goes up to 4..

next basin
#

oh srry

#

4

proven basin
#

what????

next basin
#

i misspel;d

woeful fjord
#

anyway try out the code i sent

ancient duneBOT
#

studio** You are now Level 6! **studio

proven basin
#

your in his account?

woeful fjord
#

and stop yapping

next basin
#

ok

lethal island
next basin
#

no

#

i forgo💀

proven basin
#

bruhhhhhhhhhhhhhhhhhhhhhh

lethal island
#

Then it’s not true

woeful fjord
#

bro forgot his bros account

next basin
#

.

proven basin
next basin
#

ok i will fix it with my bro

woeful fjord
#

you do that buddy

next basin
#

?

woeful fjord
#

@proven basin u know basic events and functions right?

next basin
#

i only know events and funtions

#

functions srry

proven basin
woeful fjord
proven basin
#

and more stuff

#

a lot more stuff

woeful fjord
#

ok good, just checking the s1 standard 💀

proven basin
#

I’m trying to get to s2

#

gotta make stuff first

woeful fjord
#

good luck

next basin
#

srry

#

the one thats says whats happening (i forgo its name💀 )

proven basin
lethal island
woeful fjord
proven basin
#

not the code

woeful fjord
#

I submitted a information generating and comparing system (dates, ID numbers, photos, etc.)

woeful fjord
#

have u ever played, contraband police or papers please?

proven basin
#

It’s interesting but it still needs a lot of polish

woeful fjord
#

It generates dates, ID numbers, Names, etc., within a certain range and allows for comparison

proven basin
#

Idk to remake this I would use tables and math.random

woeful fjord
woeful fjord
#

the struggle was making it customizable, clean and comparable

woeful fjord
#

it's a good start, I recommend adding recoil

#

I actaully have a gun module I can send u for refernce on recoil

proven basin
#

Just I didn’t add a lot

#

it’s easily changeable tho and I’m planning on making the recoil more realistic

woeful fjord
#
local RecoilPattern = {
    {3, 12, -1, 0.77, -0.1},
    {6, 12, -1, 0.77, 0.1},
    {8, 12, -1, 0.77, -0.1},
    {10, 12, -1, 0.77, 0.1},
}
local RecoilReset = 0.5 -- Time it takes for recoil pattern to reset back to 1

local curshot = 0
local lastclick = tick()

function lerp(a, b, t) -- Gets a number between two points using an alpha
    return a * (1 - t) + (b * t)
end

function ShootRecoil()
    curshot = (tick() - lastclick > RecoilReset and 1 or curshot + 1) -- Either reset or or increase the current shot we're at
    lastclick = tick()
    for i, v in pairs(RecoilPattern) do
        if curshot <= v[1] then -- Found the current recoil we're at
            spawn(function()
                local num = 0
                while math.abs(num - v[2]) > 0.01 do
                    num = lerp(num, v[2], v[4])
                    local rec = num / 10
                    Camera.CFrame = Camera.CFrame * CFrame.Angles(math.rad(rec), math.rad(rec * v[5]), 0)
                    RunService.RenderStepped:Wait()
                end
                while math.abs(num - v[3]) > 0.01 do
                    num = lerp(num, v[3], v[4])
                    local rec = num / 10
                    Camera.CFrame = Camera.CFrame * CFrame.Angles(math.rad(rec), math.rad(rec * v[5]), 0)
                    RunService.RenderStepped:Wait()
                end
            end)
            break
        end
    end
end
#

this is a great recoil function I found a while back

#

theres a lot to learn from it and it looks great

proven basin
#

hmm

#

I was thinking about doing my code myself

woeful fjord
#

yes i would recommend that, this is just for reference

proven basin
proven basin
woeful fjord
woeful fjord
proven basin
#

S3 is very advanced.

woeful fjord
#

but thanks for the feeback