Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Script Wont Put Value in character?

This is the script:

game:GetService("ReplicatedStorage").Stand.OnServerEvent:Connect(function(player, standname, blockvalue, health)

local chr = player.Character
local stand = game:GetService("ServerStorage")[standname].Stand

if standname == "KingCrimsonStand" or "DoppioKC" or "Doppio2KC" then
	local epitaphing = game:GetService("ServerStorage")["Epitaphing"]
	local copyepitaphing = epitaphing:Clone()
	copyepitaphing.Parent = chr
end

The script is supposed to grab the Value called Epitaphing From ServerStorage And put it into the Player But it doesnt do it, Help?

3 comments

0

explain more. what does it currently do, do you have any errors ? add print statements to see if it goes inside the if statement

0

There are Folders in server storaged name "KingCrimsonStand" Etc, and if you have it, it clones the value into your character. its not doing that currently

0

no errors.

1 answer

LocalScripts cannot access ServerStorage. You will have to fire a RemoteEvent over to the Server to access it.

2 comments

0

this isnt a llocal script this is a server scriot

0

Also sorry im dumb i forgot to put in the part that fires the remote event because i have other parts of code in there that works but this part in particular doesnt

This discussion is preserved as it was. New answers, comments, and votes are closed.