#remote event
108 messages · Page 1 of 1 (latest)
i didnt do it yet i dont know how to
In ReplicatedStorage, click the +, add remote event.
how do i make it where it shows the players on the height bar to everyone in the server
is there a script for that
you have to use a script for the remote event to work
You don't have a script in ur height bar?
i do
u have to add a script in it for the remote event or something i dont know to do that
Okay. Running into store. Be home 20 minutes. Will help then if noone has by then
ok thanks
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
so this is creating the Gui, and showing it to the player it's created for, correct?
** You are now Level 7! **
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?
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
Ok. Bare with me...
alright
ok
add a remoteEvent directly under Replicated Storage
name both (to whatever you want), then repost screenshot showing from Replicated Storage to ImageScript
i named both height
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)```
try doing the thing and lmk what happens
should i test the bar
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
oh under frame
also, we gotta change something in the script I gave you above. didn't realize you put it into a folder
show ss plz
ok good
change ur current script within local script "height" to this
it has been edited
ok
for some reason my avatar pic not showing but the bar moving
so other than Avatar pic not showing, first issue fixed?
no its still the same
any errors?
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
the top one is your script
here
error?
character is not a valid member of datamodel "game"
do me a favor, screenshot everything output into the output or copy and paste all of it here plz
can you help me to the timer thing instead of this issue i feel like theres no fix
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
would u be able to do the timer instead
the timer is a bit more complicated, and tbh, I'm not confident I can figure that one out
oh because i gtg but il be back probaly
poo
thanks tho
np
np
may or may not be around to help when u get back
may or may not be around to help when u get back
thanks for your contribution @quaint tapir
thanks for your contribution @quaint tapir
"Professional Developer"... not very professional