#POP QUIZ (NEWER CODERS ONLY PLEASE)

89 messages · Page 1 of 1 (latest)

wild valve
#

local UIS = game:GetService("UserInputService")
local leaderboard = game.ServerScriptService:WaitForChild("leaderboard")
local onClick = game.ReplicatedStorage:WaitForChild("OnClick")
local event = game.ReplicatedStorage.ClickIncrement

function click_detect(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local player = game.Players.LocalPlayer
if player then
event:FireServer()
end
end
end

UIS.InputBegan:Connect(click_detect)

#

fix

#

ez

#

( i know)

#

i have 4 years of lua

#

ofc im not gonna solve it

scenic crest
#

accessing serverScriptService within a local script

wild valve
#

local UIS = game:GetService("UserInputService")
local leaderboard = game.ServerScriptService:WaitForChild("leaderboard")
local onClick = game.ReplicatedStorage:WaitForChild("OnClick")
local event = game.ReplicatedStorage:WaitForChild("ClickIncrement")
function click_detect(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local player = game.Players.LocalPlayer
if player then
event:FireServer()
end
end
end

UIS.InputBegan:Connect(click_detect)

#

ez

#

fix

feral patio
#

there is no fiz

wild valve
#

i clearly js fixed it duH!

feral patio
#

because if leaderstats exists within server script u cant access it whatsoever

wild valve
#

he has 2 months of exp^

scenic crest
#

oh wait I have to fix

wild valve
#

dont listen to that kid

#

bro me alr fix

#

bruh

feral patio
#

js remove it Blabbering

#

(im new as well)

wild valve
#

im not new

placid plover
#

me trying to solve it (i have no experience in lua):

wild valve
#

local UIS = game:GetService("UserInputService")
local leaderboard = game.ServerScriptService:WaitForChild("leaderboard")
local onClick = game.ReplicatedStorage:FindFirstChild("OnClick")
local event = game.ReplicatedStorage:FindFirstChild("ClickIncrement")

function click_detect(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
local player = game.Players.LocalPlayer
if player then
event:FireServer()
end
end
end

UIS.InputBegan:Connect(click_detect)

#

ok there

#

actual fix

scenic crest
#

ig put the leaderboard within replicatedstorage and call it from there or just delete the line

placid plover
#

really?

wild valve
#

i did that

#

works for me

scenic crest
#

promotion pls

placid plover
#

i would've just sat in a corner and cry

wild valve
#

yep

#

they do

#

chatgpt said so

#

fr

#

hes so good

scenic crest
#

really?

wild valve
#

ngl hes kinda clutch in sum moments

#

😭

scenic crest
#

I suggest not using any for personal projects

#

deprives the learning experience

wild valve
#

i use it for errors i dont understand

#

which is rare

scenic crest
#

that's risky, if it's wrong it could mess up your understanding for the language's paradigms and whatever

hoary glenBOT
#

studio** You are now Level 2! **studio

wild valve
#

not always

placid plover
#

wait what

scenic crest
#

rust ontop baby

#

always getting updates

#

same

#

not same wtf

#

I'm a rust simp, I've learned

#

what

#

nah

#

what

#

you can fullstack on rust

#

trust

#

give dioxus and axum a try

#

I think it's beating out most javascript libraries recently

#

wtf

#

it is a compiled language tho

#

fair enough

#

where are you getting this from

#

yeah the compilation time is ass

#

on your first compile

#

that's a strong take, but Ig that means I need

#

it really isn't

#

it's closer to c++ then anything

#

that's fair

#

I'll try javascript more

#

I kind of want to see what you see in it

#

they're planning to rework a lot of the boilerplate aspects if i remember correctly

#

but I enjoy the look of boilerplate code

#

mozzila

#

mozilla

#

idk

#

firefox people

#

A lot of languages are like that

#

they're just phd projects

#

or do you mean

#

like

#

bachelor

#

the field of cs is super accessible (compared to other fields) to make advancements in, so that's kind of a weird response from people

#

speaking of college languages

#

this is hello world in piet

#

it's kinda sick

#

never gonna use it in my life

#

gotta love creative languages tho

flint cove
#

They don't??????