#the checkponit is not working
164 messages · Page 1 of 1 (latest)
Workspace.Checkpoints.Checkpoint:WaitForChild("IntValue", 10)
ok lemme try thata
but the script
i will show
will be somthing my brohter helped me at
afk
(currnly its my brothers birthday!)
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
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
Are you sure the error didn’t go away when you changed the line?
lemme check
Also, you changed the lines yet never added the fix…
Eh ypu should be smart enough to hit 3 buttons
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
You really don’t know how to deal with some basic nil errors?
I guess the s1 standards have yet to go up
It means it cannot find the object/it doesn’t exist
@lethal island stop cooking these kids 💀
?? English please
ur littry bullying kids that what it means
Just because you can’t debug for shit doesn’t mean I’m bullying you
i mean he has a point
him?
Damnnn
yes
Are you sure it’s in the right path
lemme check
send me your explorer with the int value in it
and your entire code
lmao workspace in lower case
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
workspace
--or
game.workspace
game.Workspace
yep that ^
it removing all the errors
really?!
thats in that line
it’s a warning
yeah
almost like i knew the problem lmao
Workspace is deprecated
Try it
ok
how did bro get level 1 💀
idk
its not working
** You are now Level 15! **
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
Add .Value to the end
oh kk
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)
and hes level 1?
no
gawd dam
it goes up to 4..
what????
i misspel;d
anyway try out the code i sent
** You are now Level 6! **
your in his account?
and stop yapping
ok
What’s his discord @?
bruhhhhhhhhhhhhhhhhhhhhhh
Then it’s not true
bro forgot his bros account
.
check ur friends
ok i will fix it with my bro
you do that buddy
?
@proven basin u know basic events and functions right?
yes I’ve made a gun system
thats nice, who gave u the scripter rank
ok good, just checking the s1 standard 💀
good luck
wbu r u gonna apply
S2 is quite easy, don’t overthink it
applied for S3
nice can I see some of your projects so I know what to aim for
not the code
I submitted a information generating and comparing system (dates, ID numbers, photos, etc.)
huh?
have u ever played, contraband police or papers please?
I see
It’s interesting but it still needs a lot of polish
It generates dates, ID numbers, Names, etc., within a certain range and allows for comparison
Idk to remake this I would use tables and math.random
oh of course but the system has some examples of complex methods, organized well so I decided to sumbit it
pretty much with some extra math functions
the struggle was making it customizable, clean and comparable
Yeah I see. What do you think of this gun system? It’s still a work in progress.
it's a good start, I recommend adding recoil
I actaully have a gun module I can send u for refernce on recoil
It has recoil
Just I didn’t add a lot
it’s easily changeable tho and I’m planning on making the recoil more realistic
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
yes i would recommend that, this is just for reference
Okay, I made this.
btw dont u have to show 4 scripts?
i tried it out and it was very strong and buggy? i dontk know if im suppose to loop it but when i put my camera down it stopped working. I prefer mine.
yes, the system is comprimised of multiple modules
its supposed to mimic the csgo style recoil so it should be quite strong, however if u prefer urs then stick to it
Btw ur script is good but I don't think you can get scripter3.
S3 is very advanced.
You havent seen my script
but thanks for the feeback