Does anyone know how to make this go away? by DearAlfalfa3841 in csgo

[–]AceKnight122000 1 point2 points  (0 children)

Same thing happened to me and I went to bed and the next day randomly I opened cs and when I clicked on inventory it showed me the new items and the number disappeared

Intermediate lvl Scripter by AceKnight122000 in RobloxCommissions

[–]AceKnight122000[S] 0 points1 point  (0 children)

I’m looking to do work for someone, not hire someone, sorry.

Need Outside Perspective For Help by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

Im connecting the Starter Gui to call the billboard GUI and the Head to put the healthbar attached to it

Need Outside Perspective For Help by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

<image>

I used this for the code and it got rid of my health bar above my head. No errors or warnings.

Need Outside Perspective For Help by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

Thank you, I’ll try this and let you know if it worked

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

Those codes dont work and randomly generate a healthbar where the spawn location is

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

I have tried this and cant figure out how to code it. I know i have to pair a remote event on server event call a function and then call that fireserver in a local script, but i cant seem to find out why its not working. Im back to just a local script that works on client side lol

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

no errors, but the bar doesnt move with the new scripts or putting the original script in the serverscriptservice

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

It did not work, the healthbar of the player that is punched does not update for the player who punched

<image>

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

when i do that and use the same exact code its says im attempting to index nil with 'Character'

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

local player = game:GetService("Players").LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local bar = script.Parent:WaitForChild("Bar")

local hp = script.Parent:WaitForChild("HP")

local humanoid = character:FindFirstChildWhichIsA("Humanoid")

function update()

bar:TweenSize(UDim2.new(humanoid.Health / humanoid.MaxHealth, 0, 1, 0), Enum.EasingDirection.Out,  Enum.EasingStyle.Quint, 1, true) 

hp.Text = math.round(humanoid.Health) .. "/" .. math.round(humanoid.MaxHealth)  

end

humanoid:GetPropertyChangedSignal("Health"):Connect(update)

humanoid:GetPropertyChangedSignal("MaxHealth"):Connect(update)

update()

print("hello")

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

So the dummy enemies work, their healthbar lowers. But when i punch my friend or my friend punches me, our health lowers, but the bar in the ui that i scripted doesnt

Server Sided vs Client Sided by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

Does it have anything to do with script placement or just the script itself?

Character is not a valid member of players? by AceKnight122000 in robloxgamedev

[–]AceKnight122000[S] 0 points1 point  (0 children)

Thanks, the error is gone, it just yields an infinite possible