#remote event

108 messages · Page 1 of 1 (latest)

balmy walrus
#

Um... where do u have the remoteEvent?

lavish quest
balmy walrus
#

In ReplicatedStorage, click the +, add remote event.

lavish quest
#

how do i make it where it shows the players on the height bar to everyone in the server

balmy walrus
#

With the remote event

#

Remote events tie client side to server side

lavish quest
#

is there a script for that

balmy walrus
#

Remote Event isn't a script

#

It's just something u add into ReplicatedStorage

lavish quest
#

you have to use a script for the remote event to work

balmy walrus
#

You don't have a script in ur height bar?

lavish quest
#

i do

#

u have to add a script in it for the remote event or something i dont know to do that

balmy walrus
#

Okay. Running into store. Be home 20 minutes. Will help then if noone has by then

lavish quest
#

ok thanks

balmy walrus
lavish quest
# balmy walrus kk. post script plz

local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:FindFirstChild("PlayerGui")

if Player:FindFirstChild('PlayerGui') then
while wait() do
local ImageLabel = PlayerGui.HeightGui.Frame:FindFirstChild("ImageLabel")
local Character = game:GetService("Workspace") [Player.Name]
local PrimaryPart = Character:FindFirstChild("UpperTorso")
local Height = math.ceil (PrimaryPart.Position.Y)
ImageLabel.Position = UDim2.new(-1.741, 0, 0.883, 0 - Height /5,0)
end
end

#

and the other script too

#

local ThumbnailType = Enum.ThumbnailType.HeadShot
local ThumbnailSize = Enum.ThumbnailSize.Size60x60
local Players = game:GetService("Players")
local Player = Players.LocaPlayer

while wait() do
script.Parent.Image = Players:GetUserThumbnailAsync(Player.userId, ThumbnailType, ThumbnailSize)
end

balmy walrus
#

so this is creating the Gui, and showing it to the player it's created for, correct?

urban creekBOT
#

studio** You are now Level 7! **studio

balmy walrus
#

I would recommend creating a GUI within the starterGui.ScreenGui. Then you would create a remoteEvent within Replicated Storage, then create a local script within the created GUI that ties the GUI to a trigger. Are you following a tutorial or did you make that code above?

lavish quest
#

trying to make it where it shows the players on the height bar to everyone in the server

#

it was a model i got to my inventory

balmy walrus
#

Ok. Bare with me...

lavish quest
#

alright

balmy walrus
#

going to /try/ to help lol

#

try this:

#

add a local script directly under "Frame"

lavish quest
#

ok

balmy walrus
#

add a remoteEvent directly under Replicated Storage

#

name both (to whatever you want), then repost screenshot showing from Replicated Storage to ImageScript

lavish quest
#

i named both height

balmy walrus
#

that's fine

#

ok. no need to post ss

lavish quest
#

wat screenshot did u want

#

oh

balmy walrus
#

Actually, yeah. I need the ss

#

sorry

#

show from replicated storage to ImageScript

#

in the local script under "Frame"

game.ReplicatedStorage.RoundData.height.OnClientEvent:Connect(function()
  script.Parent.Visible = not script.Parent.Visible
end)```
lavish quest
#

ok i did it

balmy walrus
#

try doing the thing and lmk what happens

lavish quest
#

should i test the bar

balmy walrus
#

yes

#

trying to think if anything in the Child scripts need to be changed, but not seeing a reason to rn

#

wait

#

where did you put the local script at @lavish quest ?

#

I don't see it in the ss

lavish quest
#

oh under frame

balmy walrus
#

also, we gotta change something in the script I gave you above. didn't realize you put it into a folder

balmy walrus
lavish quest
balmy walrus
#

ok good

balmy walrus
#

it has been edited

lavish quest
#

ok

balmy walrus
#

then test the bar

#

lmk if error or if works or what

lavish quest
#

for some reason my avatar pic not showing but the bar moving

balmy walrus
#

so other than Avatar pic not showing, first issue fixed?

lavish quest
#

no its still the same

balmy walrus
#

any errors?

lavish quest
#

it says localplayer is not a valid member of players "players"

#

idk wat that means

balmy walrus
#

ss the error plz

#

oh wait

#

second script

#
local ThumbnailSize = Enum.ThumbnailSize.Size60x60
local Players = game:GetService("Players")
local Player = Players.LocaPlayer

while wait() do
    script.Parent.Image = Players:GetUserThumbnailAsync(Player.userId, ThumbnailType, ThumbnailSize)
end```

to 

```local ThumbnailType = Enum.ThumbnailType.HeadShot
local ThumbnailSize = Enum.ThumbnailSize.Size60x60
local Players = game:GetService("Players")
local Player = game.Players.LocaPlayer

while wait() do
    script.Parent.Image = Players:GetUserThumbnailAsync(Player.userId, ThumbnailType, ThumbnailSize)
end```
#

I think

lavish quest
#

i use the bottom one

#

where do i put it

balmy walrus
#

the top one is your script

lavish quest
#

ok

#

my avatar dosent show still

balmy walrus
#

error?

lavish quest
#

character is not a valid member of datamodel "game"

balmy walrus
#

do me a favor, screenshot everything output into the output or copy and paste all of it here plz

lavish quest
#

for output

#

no mesages

balmy walrus
#

then where you seeing the error?

#

.>

lavish quest
#

on error

#

there output error and other tabs

balmy walrus
#

ok. ss that or copy and paste that

#

everything shown on last error

lavish quest
#

can you help me to the timer thing instead of this issue i feel like theres no fix

balmy walrus
#

there is a fix. I just gotta find it.

#

I'm learning as we go too. This is how I learn and how I solve my issues.

#

can't solve if I don't see all error output, including line etc

lavish quest
#

would u be able to do the timer instead

balmy walrus
#

the timer is a bit more complicated, and tbh, I'm not confident I can figure that one out

lavish quest
#

oh because i gtg but il be back probaly

balmy walrus
#

okay

#

cya

quaint tapir
#

poo

lavish quest
#

thanks tho

balmy walrus
#

np

quaint tapir
#

np

balmy walrus
#

may or may not be around to help when u get back

quaint tapir
#

may or may not be around to help when u get back

balmy walrus
#

thanks for your contribution @quaint tapir

quaint tapir
#

thanks for your contribution @quaint tapir

balmy walrus
#

"Professional Developer"... not very professional