#my script for a sword doesnt work?
1 messages · Page 1 of 1 (latest)
** You are now Level 3! **
here
here
you got this right
MICHEAL
DON'T LEAVE ME HERE
im cheering for you from the back
well that's too bad cuz im going to sleep
ay we gonna call right
fuck you
thanks 
so this doesnt work
can i know why and how
cause your buying it
but does that work
no
where do i add that?
before checking the variables with the if statement
me when you can just print(findinfo, price, tool)
price and tool aren't in scope infront of the first if statement
ohk
suffer >:3

son
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PurchaseEvent = ReplicatedStorage:WaitForChild("PurchaseEvent")
local Weapons = ReplicatedStorage:WaitForChild("Weapons")
PurchaseEvent.OnServerEvent:Connect(function(player, weaponname)
local findinfo = Weapons:FindFirstChild(weaponname)
print("findinfo:", findinfo)
if findinfo then
local price = findinfo:FindFirstChild("Price")
local tool = findinfo:FindFirstChildWhichIsA("Tool")
print("price:", price, " | tool:", tool)
if price and tool then
if player.leaderstats.Cash.Value >= price.Value then
player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - price.Value
local clonedtool = tool:Clone()
clonedtool.Parent = player.Backpack
end
end
end
end)
like this
i hope you don't lose your sanity trying to help this beginner
im suffering
now the gui wont open

what is this 😭
we didn't change a single thing that would interfere with the gui
cybersecurity homework
windows server as a domain controller
you sure?
?
- ur doing ui on the server
what the fuck
wrong one mb
Ctrl + A, Delete
Ctrl + C on the script i sent
Ctrl + V
still wont open
AND OPEN THE CONSOLE
son ur editing the wrong script 😭😭😭
i am?
ok
edit THIS
we need you to get all those braincells working at once now
go to the left top in roblox studio
press window and then console
output*
ok now what
playtest and show us the output
like record?
whats nil
non existent
but its right there
show me the explorer
is that the right
yes
ok
open this and show me the sword
one sec
** You are now Level 4! **
for you i'll even wait 2
so make it big?
yes
do i click it
right click rename
got it
its so over
no problem
trying to help a newbie in scripting is just like teaching a toddler to drive
thanks
and i assisted him to finish his first driving lesson
and he didnt learn shit just like the toddler
i was here for moral support 
help me with this now
try doing x86

