#code-discussion

1 messages · Page 233 of 1

static forum
tight venture
#

Click on the screen gui and turn on ignore gui inset

static forum
#

it alr done

#

it still the same

tight venture
hearty lark
#

flashing lights btw

fiery storm
dusky relic
hearty lark
hearty lark
#

🤑

civic thunder
#

hey, does roblox have 2d ads? or only 3d immersive ones?

mossy lynx
#

this script dont work, doesnt do dmg or chase, its a chasing script for an npc any1 tryna help

local NPC = script.Parent
local NHRP = NPC.HumanoidRootPart
local NH = NPC.Humanoid
local cd = false

NPC.Touched:Connect(function(hit)
    local character = hit.Parent
    local player = game.Players:GetPlayerFromCharacter(character)
    if player and not cd then
        cd = true
        local H = character:FindFirstChild("Humanoid")
        H.Health = H.Health - 15
        task.wait(1.5)
        cd = false
    end
end)

while true do
    task.wait(0.1)
    for _, player in pairs(game.Players:GetPlayers()) do
        local character = player.Character
        local PHRP = character:FindFirstChild("HumanoidRootPart")
        local distance = (PHRP.Position - NHRP.Position).Magnitude
        if distance < 31 then
            NH:MoveTo(PHRP.Position)
        end
    end
end
hearty lark
#

just make task.wait() the new wait() 🥀

#

but ig that could maybe mess up old games or smth idk lol

mossy lynx
flat viper
#

making more progress on my game

  • shop & pack opening system / locker room (character customization)
  • game loop and ball mechanics
empty jay
#

ok

mossy lynx
#

same bro same

harsh quiver
brave cairn
valid pewter
valid pewter
north dagger
#

so goated

north dagger
# hearty lark

optimization goat 🔥🔥🔥🔥 (i would script the same way)

pearl blaze
mossy lynx
#

Yo be quiet

#

Bum

#

It wasn’t working At all

#

Like

#

Chase wasn’t running

#

So how am I supposed to put prints

#

U can Litterally ask for help for a reason

pearl blaze
#

Then tell the details of the problem, like ask why going from this line script just doesn't continue working, add a print to showcase that this exact print doesn't work.

mossy lynx
#

I said it somewhere else

#

Also did I not say I figured it out?

pearl blaze
#

Good, but still debug and explain the problem in detail when you Find it.

valid pewter
frail plaza
#

how would i prevent this?

gusty sapphire
#

g

empty jay
raw bane
#

i could @static forum

frail plaza
chilly canyon
simple epoch
#

how can i get all characters on a loop?

#

like i wanna for i,v in game.Players:GetChildren() do

#

but with characters not players

#

oh i can just do that and do v.character

frail plaza
midnight rivet
#

I need help adding my gun animation to my Roblox game

#

And I don’t know how to script

pastel scroll
#

Is react lua worth learning?

simple epoch
#

how can i make a humanoid:MoveTo() function stop mid way?

midnight rivet
#

I need help adding my gun animation to my Roblox game

chilly canyon
simple epoch
#

thanks still

chilly canyon
midnight rivet
#

I need help adding my gun animation to my Roblox game

simple epoch
chilly canyon
#

wdym

simple epoch
#

if i do a new moveto does it cancel the current moveto going on to do the new one?

midnight rivet
#

I need help adding my gun animation to my Roblox game dm me if you can help

midnight rivet
autumn hull
#

i did it

paper crystal
paper crystal
#

if not then there will be ways to stop it

#

is humanoid stop a thing

#

idk

simple epoch
#

it was supposed to be a mob that chases people

#

but if it locks onto a player it wont chase anyone else

#

even if the player goes away

#

and i have zero ieda how to fix

celest pulsar
#

yo anyone got one piece of advice on how to become a goated dev (scripter)

simple epoch
#

im also in need of that advice

autumn hull
simple epoch
autumn hull
#

or just check distance till player

autumn hull
#

its*

simple epoch
#

fov?

#

wdym

hasty shore
#

can someone tell me if this is good?

stiff saddle
hasty shore
#
-- SERVICES
local players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")
local plr = players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local Cone = replicatedStorage.ConeObject
local tool = script.Parent

--VARIABLES
local holdingCone = false


--FUNCTIONS
local function placeCone()
    local coneclone = Cone:Clone()
    local coneCFrame = character.HumanoidRootPart.CFrame * CFrame.new(0,-1.024,-5)
    
    if character:FindFirstChildOfClass("Tool") then
        holdingCone = true
        print("holding")
    end
    
    if holdingCone == true then
        local createCone = Instance.new("Part")
        createCone = coneclone
        createCone.CFrame = coneCFrame
        createCone.Anchored = true
        createCone.Massless = true
        createCone.Parent = game.Workspace
        print("Cone Placed")
    else
        holdingCone = false
    end
end

tool.Activated:Connect(placeCone)
autumn hull
#

you want cone to be client side?

#

invisible to other players*

hasty shore
#

no i dont

stiff saddle
hasty shore
#

this is on a local script

autumn hull
#

then put place cone on server side

stiff saddle
#

o

autumn hull
#

nvm agree

#

should do Player.CharacterAdded

autumn hull
#

and rewrite varaible that hold character

stiff saddle
hasty shore
autumn hull
#

let me write script

#

ill send it

hasty shore
#

oh okay

simple epoch
#

my brain is getting deepfried

autumn hull
#
--!strict

local Players: Players = game:GetService("Players");

local player = Players.LocalPlayer :: Player;

local currentCharacter = player.Character or player.CharacterAdded:Wait();

player.CharacterAdded:Connect(function(newCharacter: Model)
    currentCharacter = newCharacter;
end)
#

and yes let me make safeguards

#
--!strict

local Players: Players = game:GetService("Players");

local player = Players.LocalPlayer;

if not player then return end;

local currentCharacter = player.Character or player.CharacterAdded:Wait();

player.CharacterAdded:Connect(function(newCharacter: Model)
    currentCharacter = newCharacter;
end)
#

and place cone should be serverlogic

#

so it replicates to all clients

#

so you will have to use RemoteEvent

hasty shore
autumn hull
#

yes

hasty shore
#

okay

autumn hull
#

Can you explain me the idea please?

hasty shore
#

its just a simple placing cones down script, im doing it as like an assignment/task my scripter friend gave me to do

autumn hull
#

other players wont see it

#

try running with 2 playe instnaces

#

Is this all code in LocalScript?

hasty shore
autumn hull
#

then yes what i said is true

#

try this

#

wait how to send an image?

hasty shore
autumn hull
#

yes

#

that is what happens

#

if you want all players to see it

#

use tool events

#

use remote

#

sever makes the cone

#

on client

--!strict
local PlaceCone: RemoteEvent = game.ReplicatedStorage.PlaceCone
local Players: Players = game:GetService("Players");

local player: Player? = Players.LocalPlayer;

if not player then return end;

local tool: Tool = player.Backpack:FindFirstChild("Tool");

tool.Activated:Connect(function()
    PlaceCone:FireServer();
end);

#

then server does valid player check and places a cone

#

maybe even do task.delay(lifeTimeOfCone, coneDeletionFunction)

#

ik

#

i do it cause i want to

#

wth

#

brother i made moduleScript mainly for types

#
--!strict

--Weak Table
export type WeakTable = {__mode: "k"};

--Log Entry
export type LogEntry = {
    Time: number;
    Name: string;
    Action: string;
};

--Cooldown Service
export type CooldownService = {
    new: new;
};

export type CooldownMetatable = {
    __index: CooldownMetatable;
    GetProfile: GetProfile;
};

--Cooldown
export type Cooldown = setmetatable<{
    Debug: boolean;
    WarningsMax: number;
    WarningsReset: number;
    GetDuration: GetDuration;
    GetPunishment: GetPunishment;
    Logs: {[number]: {LogEntry}};
    Profiles: setmetatable<{[Player]: CooldownProfile}, WeakTable>;
}, CooldownMetatable>;

--Cooldown Profile Metatable
export type CooldownProfileMetatable = {
    __index: CooldownProfileMetatable;
    Log: Log;
    Warn: Warn;
    Stop: Stop;
    Clear: Clear;
    Start: Start;
    Block: Block;
    GetLog: GetLog;
    Unblock: Unblock;
    IsOnCooldown: IsOnCooldown;
};

--Cooldown Profile
export type CooldownProfile = setmetatable<{
    Player: Player;
    Blocked: boolean;
    Warnings: number;
    LastCall: number;
    LastReset: number;
    Cooldown: Cooldown;
}, CooldownProfileMetatable>;

--Cooldown Service Methods
export type new = (
    arguments: {
        Debug: boolean;
        WarningsMax: number;
        WarningsReset: number;
        GetDuration: GetDuration;
        GetPunishment: GetPunishment;
    }
) -> (Cooldown);

--Cooldown Methods

--Shared
export type GetProfile = (
    self: Cooldown,
    arguments: {
        Player: Player;
    }
) -> (CooldownProfile);

export type Log = (
    self: CooldownProfile,
    arguments: {
        Action: string;
    }
) -> ();

export type GetLog = (
    self: CooldownProfile
) -> ({LogEntry});

#

ty

quaint thunder
#

bro can a scripter PLEASE help me with something

autumn hull
#

Server logic

-- SERVICES
local replicatedStorage = game:GetService("ReplicatedStorage");
local PlaceCone = game.ReplicatedStorage.PlaceCone;
local Cone = replicatedStorage.ConeObject;

--FUNCTIONS
local function placeCone(player: Player)
    
    local character: Model? = player.Character;
    
    if not character then return end;
    
    local humanoid: Humanoid? = character:FindFirstChildOfClass("Humanoid");
    
    if not humanoid then     return end;
    
    local coneclone = Cone:Clone();
    coneclone.CFrame = humanoid.CFrame * CFrame.new(0,-1.024,-5);
    coneclone.Anchored = true;
    coneclone.Massless = true;
    coneclone.Parent = game.Workspace;
    print("Cone Placed");
end;

PlaceCone.ONServerEvent:Connect(placeCone);

#

sorry for bad formatting

quaint thunder
#

i made an animatoin but it only plays on npcs and not on the client

#

i don't know why

autumn hull
#

OnServerEvent*

autumn hull
quaint thunder
#

i did

autumn hull
#

you got an id?

quaint thunder
#

yeah i do

#

could i dm you?

#

i can't send pics

#

or vids

autumn hull
#

no worries

#

then make a local script and load an animation

quaint thunder
#

is it safe to send id in here

autumn hull
#

i think nobody can use it except creators of animation i think, but not sure

quaint thunder
#

oh ight

#

local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = animator:LoadAnimation(animation)

task.wait(5)
print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 
    runTrack:Play() 
    print("mouse left pressed")
end

end)

#

i was just testing it, no debounces or anything

autumn hull
#

k

#

character is kinda problem i think

#

and no need for task.wait

quaint thunder
#

oooo

autumn hull
#

local player = game.Players.LocalPlayer

#

then get character

quaint thunder
#

ight

#

i have it in starter character scripts btw

#

that isn't a problem is it

autumn hull
#

idk

#

i guess no

quaint thunder
#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = animator:LoadAnimation(animation)

task.wait(5)
print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 
    runTrack:Play() 
    print("mouse left pressed")
end

end)

#

it still isn't working

#

bro what i don't understand

autumn hull
#

i mean it should work

quaint thunder
#

i did it in blender but it's playing on the npcs

autumn hull
#

whats the issue?

quaint thunder
#

i have no clue

#

that's what im trying to figure out

autumn hull
#

like whats the bug?

queen fiber
autumn hull
#

it is

#

in CharacterScripts

queen fiber
#

uh

quaint thunder
autumn hull
#

like is it working?

queen fiber
#

okay and the animation is uploaded by you?

quaint thunder
#

but it's playing on the server

#

like on the npc

queen fiber
#

add

print(runTrack.Length)

before Play() so we can see if it even loads client-side

autumn hull
quaint thunder
queen fiber
#

yo ushould be using

humanoid:LoadAnimation(animation)
quaint thunder
queen fiber
#

I believe

autumn hull
#

Wiat

#

what is the priority?

#

Idle

quaint thunder
queen fiber
#

animation priorty is also a thing

queen fiber
quaint thunder
#

im not sure actually but i can change it from the script right

quaint thunder
queen fiber
#

yeah

quaint thunder
#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
--local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = humanoid:LoadAnimation(animation)

print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 
    
    print(runTrack.Length)
    runTrack:Play() 
    print("mouse left pressed")
end

end)

autumn hull
#

i dont think you can change it form script

queen fiber
#

track.Priority = Enum.AnimationPriority.Action

#

or I think animation.Priority = Enum.AnimationPriority.Action

#

in your case

autumn hull
#

sure

#

track

#

this one

track.Priority = Enum.AnimationPriority.Action
quaint thunder
#

should i do track

#

or animation.Priority = Enum.AnimationPriority.Action

autumn hull
#

yes

autumn hull
#

animation doenst have key Priority

queen fiber
#

track is never defined

quaint thunder
#

01:49:59.536 Priority is not a valid member of Animation "Animation" - Client - LocalScript:12

queen fiber
#
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait() 
local humanoid = character:WaitForChild("Humanoid")
--local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService") 

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"


print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

    if gpe then return end  
    
    if input.UserInputType == Enum.UserInputType.MouseButton1 then 
        
        print(runTrack.Length)
        humanoid:LoadAnimation(animation):Play()
        print("mouse left pressed")
    end
    

end)

You can also try that above ^

quaint thunder
#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
--local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = humanoid:LoadAnimation(animation)

animation.Priority = Enum.AnimationPriority.Action

print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 
    
    print(runTrack.Length)
    runTrack:Play() 
    print("mouse left pressed")
end

end)

#

is it cool if i just copy and paste it?

queen fiber
#

local track = humanoid:LoadAnimation(animation)

autumn hull
queen fiber
quaint thunder
#

my studio might be cursed

#

it isn't working

#

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
--local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"
local track = humanoid:LoadAnimation(animation)

print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 

    print(track.Length)
    humanoid:LoadAnimation(animation):Play()
    print("mouse left pressed")
end

end)

queen fiber
#

oay

#

if it doesn't work try this one:

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait() 
local humanoid = character:WaitForChild("Humanoid")
--local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService") 

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = humanoid:LoadAnimation(animation)
runTrack.Priority = Enum.AnimationPriority.Action


print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

    if gpe then return end  
    
    if input.UserInputType == Enum.UserInputType.MouseButton1 then 
        
        print(runTrack.Length)
        runTrack:Play() 
        print("mouse left pressed")
    end
    

end)

try this (should work now probably)

quaint thunder
#

wait

#

i didn't parent thre animation instance

autumn hull
#

amm you dont i think

rough vine
#

Yo krex

queen fiber
#

hi

autumn hull
#

you have pointer to it

rough vine
#

How much lua experience do
You have

queen fiber
#

you're still technically loading the animation Id

#

but yea try parenting

queen fiber
rough vine
queen fiber
#

honestly the parenting thing skipped my mind lol

rough vine
#

It’s space themed

queen fiber
#

I like space

quaint thunder
#

sigh man it aint wokring, i think it's maybe something with the addon i used to animate

#

but still it worked on the npc

autumn hull
queen fiber
#

okay final try from me:

rough vine
queen fiber
#

if it doesn't work try this one:

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait() 
local humanoid = character:WaitForChild("Humanoid")
--local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService") 

local animation = Instance.new("Animation")
animation.Parent = character
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = humanoid:LoadAnimation(animation)
runTrack.Priority = Enum.AnimationPriority.Action


print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

    if gpe then return end  
    
    if input.UserInputType == Enum.UserInputType.MouseButton1 then 
        
        print(runTrack.Length)
        runTrack:Play() 
        print("mouse left pressed")
    end
    

end)
quaint thunder
queen fiber
#

final try ^

quaint thunder
#

ight

autumn hull
#

not Chracter

rough vine
queen fiber
#

oh

#

I maybe found an issue

quaint thunder
#

still not working, maybe i should try using a remoteEvent?

autumn hull
#

nahhh

#

write --!strict on top

quaint thunder
#

ight

autumn hull
#

and check each type

queen fiber
quaint thunder
#

i can finally send images

queen fiber
#

lol

autumn hull
#

print(runTrack.IsPlaying) after you runTrack:Play()

lilac spruce
#

Hello I would like to ask for some advice. I want to learn much more advanced topics on Roblox, but I'm not sure where to start. I'm talking parallel luau and stuff like that, could anyone give me a list?

quaint thunder
queen fiber
queen fiber
autumn hull
queen fiber
#

also are u sure you own the animationnn

#

oh

quaint thunder
#

this is the code i used

quaint thunder
autumn hull
#

yes

quaint thunder
#

how

#

is it roblox then?

queen fiber
#

you're missing animator

quaint thunder
autumn hull
#

Wait maybe animation gets garbage collected

queen fiber
#

maybe
local runTrack = animator:LoadAnimation(animation)

autumn hull
#

put it in repicated storage

hasty shore
autumn hull
hasty shore
#

i dont think u can call localplayer on a server script

quaint thunder
#

instead of already having it

hasty shore
autumn hull
#

make animation instance

quaint thunder
#

instance.new

queen fiber
hasty shore
autumn hull
#

cause its Player? type

queen fiber
#

strict

autumn hull
#

try putting animation in replicated or staore somewhere

#

i remembered haveing same issue

#

i made animation instance and stored it

quaint thunder
queen fiber
#

or some other things I read, animator has to exist server-side

autumn hull
#

probably garbage collector doesnt see strong reference so it collects it

queen fiber
quaint thunder
stiff saddle
#

wsp back electricity was gone

quaint thunder
#

--!strict
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

local animation = Instance.new("Animation")
animation.Parent = character
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = humanoid:LoadAnimation(animation)
runTrack.Priority = Enum.AnimationPriority.Action

print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 

    print(runTrack.Length)
    runTrack:Play() 
    print(runTrack.IsPlaying)
    print("mouse left pressed")
end

end)

#

im gonna try and put it in replicated storage instead

autumn hull
#

instead of this

#

local animation = Instance.new("Animation")
animation.Parent = character
animation.AnimationId = "rbxassetid://84246068666989"

#

put a new instance somewhere

#

where client can get it

queen fiber
#
--!strict
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait() 
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService") 

local animation = Instance.new("Animation")
animation.Parent = character
animation.AnimationId = "rbxassetid://84246068666989"

local runTrack = animator:LoadAnimation(animation)
runTrack.Priority = Enum.AnimationPriority.Action


print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

    if gpe then return end  

    if input.UserInputType == Enum.UserInputType.MouseButton1 then 

        print(runTrack.Length)
        runTrack:Play() 
        print(runTrack.IsPlaying)
        print("mouse left pressed")
    end


end)
quaint thunder
#

like repl

#

icated

queen fiber
hasty shore
#

Server Script @autumn hull

local Players: Players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")

local Cone = replicatedStorage:WaitForChild("ConeObject")
local serverClone = replicatedStorage:WaitForChild("Remotes"):WaitForChild("PlaceClone")

--VARIABLES
local holdingCone = false

--FUNCTIONS
local function placeCone(plr: Player)
    if not plr then return end

    local character = plr.Character
    if not character then return end

    local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
    if not humanoidRootPart then return end

    local coneclone = Cone:Clone()
    local coneCFrame = humanoidRootPart.CFrame * CFrame.new(0, -1.024, -5)

    if character:FindFirstChildOfClass("Tool") then
        holdingCone = true
        print("holding")
    else
        holdingCone = false
    end

    if holdingCone == true then
        local createCone = coneclone
        createCone.CFrame = coneCFrame
        createCone.Anchored = true
        createCone.Massless = true
        createCone.Parent = workspace
        print("Cone Placed")
    end
end

serverClone.OnServerEvent:Connect(placeCone)

Local Script

local replicatedStorage = game:GetService("ReplicatedStorage")
local tool = script.Parent
local placeClone = replicatedStorage:WaitForChild("Remotes"):WaitForChild("PlaceClone")

tool.Activated:Connect(function()
    placeClone:FireServer()
end)
autumn hull
#

something like that

quaint thunder
#

it it aint working

#

i think maybe

queen fiber
#

soo weird

quaint thunder
#

there's something wrong with blender

stiff saddle
#

what's going on

autumn hull
quaint thunder
#

ohhhh

queen fiber
#

animations have always been buggy to me lol

quaint thunder
queen fiber
stiff saddle
queen fiber
#

i think it has to exist server side even if you're calling it client side

quaint thunder
#

i have it in rep

queen fiber
#

if that doesn't work... no clue

queen fiber
quaint thunder
#

--!strict
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService")

game:GetService("ReplicatedStorage"):WaitForChild("Animation")

local runTrack = animator:LoadAnimation(animation)
runTrack.Priority = Enum.AnimationPriority.Action

print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

if gpe then return end  

if input.UserInputType == Enum.UserInputType.MouseButton1 then 

    print(runTrack.Length)
    runTrack:Play() 
    print(runTrack.IsPlaying)
    print("mouse left pressed")
end

end)

#

like that?

queen fiber
#

but it was like, 4 years ago

quaint thunder
queen fiber
#
--!strict
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait() 
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")
local UIS = game:GetService("UserInputService") 


local animation = game:GetService("ReplicatedStorage"):WaitForChild("Animation")

local runTrack = animator:LoadAnimation(animation)
runTrack.Priority = Enum.AnimationPriority.Action


print("wait is over")

UIS.InputBegan:Connect(function(input, gpe)

    if gpe then return end  

    if input.UserInputType == Enum.UserInputType.MouseButton1 then 

        print(runTrack.Length)
        runTrack:Play() 
        print(runTrack.IsPlaying)
        print("mouse left pressed")
    end


end)
#

that

quaint thunder
#

oh wait i forgot local

queen fiber
#

so both animator and animation exist server-side

queen fiber
quaint thunder
#

i've been trying to debug this from today my brain is fried

queen fiber
autumn hull
#

server is not a problem

autumn hull
#

problem is that everything exist but animation doesnt play

queen fiber
quaint thunder
#

this is underlined red

#

for some reason

autumn hull
#
runTrack.Ended:Connect(function()
    print("Banana");
end);
quaint thunder
#

put this at the end?

autumn hull
#

try

queen fiber
autumn hull
#

if it writes something it means runTrack exists

#

tpye error*

queen fiber
#

just seems underlined red not error

#

because you're in strict mode

autumn hull
#

does it print banana after x amount of seconds?

quaint thunder
autumn hull
#

when you click play and click is it prints?

quaint thunder
#

dont mind server code

quaint thunder
queen fiber
#

oh it never ends

autumn hull
#

wait what R animation you have?

#

rig

quaint thunder
#

r6

autumn hull
#

type

#

is animationR6?

quaint thunder
#

i changed the avatar settings to r6 too

quaint thunder
queen fiber
#

there is also... Animator.AnimationPlayed

quaint thunder
#

oh wait

queen fiber
#

to check if it plays

quaint thunder
#

the aavatar settings wasn't changed to r6....

queen fiber
#

because right now banana never prints right so it never ended

quaint thunder
#

i just did

autumn hull
#

ahahha

queen fiber
#

then this aint code discussion this was your error discussion LOLLL

#

😭

quaint thunder
#

it isn't working either wthhh

queen fiber
#

hopefully it wors now

queen fiber
#

nevermind

queen fiber
autumn hull
quaint thunder
quaint thunder
queen fiber
# quaint thunder

is your game avatar settings even in r6? (top 3 dots ... at the top R6 only?)

queen fiber
quaint thunder
#

ohhhhh

#

how's that

queen fiber
#

in avatar settings

#

is it set to R6 only?

quaint thunder
#

wait

#

i didn't know u could do that

#

OHHHHH

#

YOU GUYS ARE THE BEST MAN

queen fiber
#

welcome to roblox where we hide everything for no reason and deprecate everything

queen fiber
#

your character was never r6... if so

quaint thunder
queen fiber
#

r6 anim cant play on r15 because roblox sets to r15 automatically

quaint thunder
#

yeahhh it's working now

queen fiber
#

there is fake r15 where its r6 anims but still r15 and its stupid

queen fiber
autumn hull
#

bruh

#

solution was so simple

queen fiber
#

we did ittt

quaint thunder
#

bro

queen fiber
quaint thunder
#

i genuinely didn't know u could do that

#

like i didn't know that was a tihng

queen fiber
quaint thunder
quaint thunder
autumn hull
#

@hasty shore does it work?

#

like you should put some cooldown on the remote tho

#

and delete cones after x amount of time

queen fiber
#

yeah

#

delete the .Ended print(banana) thing

#

delete all prints

#

as we know it works

#

prints are for debug, also remove the strict line at the top

autumn hull
#

you something agianst --!strict??

#

against*

chilly canyon
#

What

hasty shore
queen fiber
#

it is not needed for simple code

hearty lark
rotund lichen
#

@twin flare

stiff saddle
#

?

static forum
echo hedge
#

Would yall make a collectionscript if u r gon use the same 1 line code like 8 times or would yall just put the code in each one of the 8 parts

static coral
#

and 1 script

echo hedge
#

Damn ty

visual vector
#

anyone here need a game template

eternal current
#

i need help i got custom finger rig but how do i put it on my character in the actual game

#

r15 boy rig

#

when i put it in starterplayer as startercharacter it doesnt get the humanoid descs

frosty sorrel
#

who can help me in scripting Pls Guys For Free

elfin crater
wise flame
#

but collectionservice can help if you end up wanting to change something so you only have to fix one script

chilly canyon
static forum
#

Hello guys am looking for someone to help me out with Ui my game is mostly done just needs some Ui dm if you can help me

nimble pier
#

no payment btw

willow parrot
#

best way to begin lua ?

buoyant dagger
#

can someone tell me why roblox ai assistent is suddenly telling me he's unable to edit my scriptsWHYYYYY

somber vault
#

yo yo yo

ornate bone
#

can anyone help me fix animations not loading in game ( i bought the game a year ago and i dont have permission to the animations, is there any way around this I can pay a good ammount of usd, robux)

echo hedge
#

Would yall say making abilities is hard

regal salmon
empty jay
#

who ping me

echo hedge
stiff saddle
hollow summit
vocal kernel
#

hello how can i make this a loop ? cuz when the game is finished its not starting a new one

zenith cloak
jolly obsidian
paper crystal
#

why dont you ask AI for how you can get past that problem

vocal kernel
jolly obsidian
vocal kernel
#

i can explain it to u its easy come dm

jolly obsidian
#

Tysm

vocal kernel
#

dm me ill show u

digital abyss
#

add
elseif gameStarted == true then
while gameStarted do
task.wait(0.1)

vocal kernel
#

yes tysm but sm1 already told me how to do it ;3

paper crystal
#

of the main loop

jolly obsidian
vocal kernel
vocal kernel
jolly obsidian
#

Ok

dreamy coyote
#

on a serious note, what should i use AI for and what shouldn't I? I'm not fully against it but I also really enjoy scripting myself, so idk what tasks I should automate and which ones would be better to do / funner to do myself

upper jay
#

speaking purely on programming, you can definitely use it, especially for pieces of code u dont understand or pieces of code that you think should work but arent and etc

#

yeeeep, so lowkey highkey, AI is my last resort

#

first is searching on devforum

#

well it depends actually

#

if its a small enough problem, AI is easiest to ask

#

but devforum has a wider scope and will most likely be the most accurate

#

AI can hallucinate, so keep that in mind :3

#

atleast from my free ai usage, they suck at coding in things revolving around CFrames

#

or anything indepth related to math

digital abyss
#

Is it worth to use modules to handle gui?, i think i just got an issue in my LobbyUI system wich after the players dies and it runs the module.new() again ,its just stop working

upper jay
#

r u using the functions for multiple UIs?

digital abyss
#

Lobby and round for example

upper jay
#

what exactly does ur module do

#

for the ui

digital abyss
#

I think i figured out the mistake was i was destroying the slottemplate after cloning them and then in the next loop i didnt had any

upper jay
digital abyss
digital abyss
# upper jay so i assume .new() makes a new slot?

function CharacterSelectionMenu.new(lobbyGui)
local self = setmetatable({}, CharacterSelectionMenu)

self.Menu = lobbyGui:WaitForChild("CharactersMenu")
self.Menu.Visible = false

local layout = self.Menu:WaitForChild("CharactersLayout")
self.KillersTemplates = layout:WaitForChild("Killers")
self.SurvivorsTemplates = layout:WaitForChild("Survivors")

self.CharView = self.Menu:WaitForChild("CharView")
self.CharacterInfo = self.CharView.CharacterInfo
self.CharacterName = self.CharacterInfo.TextLabel

local actorsFolder = game.ReplicatedStorage.Gui.Actors
self.killersFolder = actorsFolder:WaitForChild("Killers")
self.survivorsFolder = actorsFolder:WaitForChild("Survivors")

self.viewportRigs = { Survivor = nil, Killer = nil } 
self.selectedSlots = { Survivor = nil, Killer = nil }
self.currentView = "Survivor"

local OpenCharsMenuBtn = lobbyGui:WaitForChild("OpenCharsMenu")
OpenCharsMenuBtn.MouseButton1Click:Connect(function()
    self.Menu.Visible = not self.Menu.Visible
end)

local ShowKillersBtn = self.Menu:WaitForChild("ShowKillers")
local ShowSurvivorsBtn = self.Menu:WaitForChild("ShowSurvivors")

self.KillersTemplates.Visible = false
self.SurvivorsTemplates.Visible = true

ShowKillersBtn.MouseButton1Click:Connect(function()
    if self.currentView == "Killer" then return end
    self.KillersTemplates.Visible = true
    self.SurvivorsTemplates.Visible = false
    self.currentView = "Killer"
    self:RefreshCharView()
end)

ShowSurvivorsBtn.MouseButton1Click:Connect(function()
    if self.currentView == "Survivor" then return end
    self.KillersTemplates.Visible = false
    self.SurvivorsTemplates.Visible = true
    self.currentView = "Survivor"
    self:RefreshCharView()
end)

return self

end

upper jay
#

see what doesnt print when u die

frosty sorrel
#

hey

upper jay
#

rule of thumb for debugging, if u dont know whats going on, you can try checking if something isnt running when its supposed to be

#

so add prints

digital abyss
#

Alr ima try

#

I gotta learn how to use the debugger too is there any guide for that

upper jay
#

theres an article about debugging on roblox's documentation site

nocturne solstice
#
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "HealthDisplay"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui

local container = Instance.new("Frame")
container.Name = "HealthContainer"
container.Size = UDim2.new(0, 100, 0, 100)
container.Position = UDim2.new(1, -120, 1, -120)
container.BackgroundTransparency = 1
container.Rotation = 15
container.Parent = screenGui

local healthIcon = Instance.new("ImageLabel")
healthIcon.Name = "HealthIcon"
healthIcon.Size = UDim2.new(0, 80, 0, 80)
healthIcon.Position = UDim2.new(0.5, -40, 0.5, -40)
healthIcon.BackgroundTransparency = 1
healthIcon.Image = "rbxassetid://75818338384399"
healthIcon.ScaleType = Enum.ScaleType.Fit
healthIcon.Parent = container

local bounceTween

local function createBounce()
    local bounceInfo = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, -1, true, 0)
    local bounceGoal = {Position = UDim2.new(1, -120, 1, -130)}
    bounceTween = TweenService:Create(container, bounceInfo, bounceGoal)
    bounceTween:Play()
end

local function fallOffScreen()
    if bounceTween then
        bounceTween:Cancel()
    end

    healthIcon.Image = "rbxassetid://71328443351937"

    local fallInfo = TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In, 0, false, 0)
    local fallGoal = {
        Position = UDim2.new(1, -120, 2, 0),
        Rotation = container.Rotation + 180
    }

    local fallTween = TweenService:Create(container, fallInfo, fallGoal)
    fallTween:Play()

    fallTween.Completed:Connect(function()
        healthIcon:Destroy()
    end)
end

local function respawnIcon()
    healthIcon = Instance.new("ImageLabel")
    healthIcon.Name = "HealthIcon"
    healthIcon.Size = UDim2.new(0, 80, 0, 80)
    healthIcon.Position = UDim2.new(0.5, -40, 0.5, -40)
    healthIcon.BackgroundTransparency = 1
    healthIcon.Image = "rbxassetid://75818338384399"
    healthIcon.ScaleType = Enum.ScaleType.Fit
    healthIcon.Parent = container

    container.Position = UDim2.new(1, -120, 1, -120)
    container.Rotation = 15

    createBounce()
end

local function onCharacterAdded(character)
    local humanoid = character:WaitForChild("Humanoid")

    humanoid.MaxHealth = 100
    humanoid.Health = 100

    humanoid.Died:Connect(function()
        fallOffScreen()
    end)
end

createBounce()

if player.Character then
    onCharacterAdded(player.Character)
end

player.CharacterAdded:Connect(function(character)
    wait(0.5)
    respawnIcon()
    onCharacterAdded(character)
end)

how would i go about adding extra lives??
im not asking for spoonfed code, but what all would i need in order to add extra lives to the player & have them dissapear according to health?

chilly canyon
#

Yup

nocturne solstice
#

but idek how to go about it & im a bit stumped on what id need

#

i know i need a remoteevent to tell the server to give the player 100 health & (obviously) the ui script provided

echo hedge
#

I am not rly good but ig u could just make an intvalue and make it a child of the player

nocturne solstice
#

i just made the ui within the script because its just an easy setup

#

and i thought it would be easier to modify

#

its what my codev said

shut ridge
nocturne solstice
#

the player starts off with 1 life

#

and they are 1 shot

#

(100 health)

#

because the killer does 100 damage

#

but if they have 2 lives, which is obtainbable by doing tasks during the round, they get 200 health

#

but once they fall back to <=100 health, the newly obtained life falls off the display, leaving the player with only 1

shut ridge
nocturne solstice
#

do you need a serverscript for that? cuz i tried it and it was treating the player as if i only had 100 healthg

shut ridge
#

It is just a customizing of max health

shut ridge
#

Not a constant value like 100

nocturne solstice
#

ohh so you need relative damage

#

so wait

#

i need to track lives on the server (use an intvalue/numbervalue in the player) to prevent exploits & initialize with 1 life

#

and scale the health by setting Humanoid.MaxHealth = lives x 100

#

and then use remoteevents for ui updates?

upper jay
#

i think u can just handle the ui updates on client

#

u can see ur health going down anyhow, no need for the server to tell the client about their health

nocturne solstice
#

should i use a RemoteEvent or .Changed connection to detect when the lives value changes?

upper jay
next tide
#

i dont know why my triple hatch and auto hatch scripts arent working if any1 can take a look in dms lmk

shut ridge
upper jay
shut ridge
#

And then calculate stuffs on server and then fire client if needed

upper jay
#

am i misunderstanding what theyre asking for

shut ridge
upper jay
#

the ui updates

shut ridge
nocturne solstice
#

so if im not mistaken, it should work as such?

  1. player does task > client fires remote event to server
  2. server verifies task completion > adds +1 to lives intvalue > sets humanoid.maxhealth = lives * 100
  3. client's getpropertychangedsignal("health") or getpropertychangedsignal("maxhealth") detects the change
  4. client adds another health icon to the ui
  5. killer hits player > damage is dealt on server
  6. client's humanoid.health drops (e.g., from 200 to 100)
  7. client's getpropertychangedsignal("health") detects health crossed threshold
  8. client calculates current lives = math.ceil(humanoid.health / 100)
  9. if current lives < displayed lives, client triggers fall-off animation for one icon
  10. icon falls off screen, player continues with remaining lives
  11. if health hits 0, humanoid dies and player respawns with 1 life again
humble pewter
#

NEEED SOME HELP! plz!

#

chat

#

yall know the like sab steal system right? like the "steal" prompt and wtv wtv

#

should i use welds to weld the like, npc to the player when it's stealing it?

upper jay
#

i assume they mean like

#

updating the health gui to visualize how many lives the player still has

nocturne solstice
#

yes

upper jay
#

thats impressively on point, good job

shut ridge
#

Client getpropertychanged Signal fires only after the health got changed so if you shot the damage still need to cacualze correctly tho idk if I have explained well idk

upper jay
#

okay im curious tho

nocturne solstice
#

sweeeet! thanks a ton guys

upper jay
#

how do u intend to handle step 11

shut ridge
chilly canyon
nocturne solstice
shut ridge
nocturne solstice
humble pewter
#

tried using runservice for both client and server and it did not end up well

nocturne solstice
#

yeah exactly, welding locks the npc instantly which won’t interpolate nicely

#

best approach is a server loop or tween to move it toward the player while stealing

humble pewter
#

but it would do like a RLLY bad lagback

nocturne solstice
nocturne solstice
humble pewter
upper jay
humble pewter
#

well yeah thats what i meant 😭 i meant weldconstraint

#

but the character's anchored

nocturne solstice
humble pewter
#

cause here's what happens: when it welds, i legit can't move myself, like the NPC is on t op of me but i literally can't move or jump or anything

upper jay
#

but as soon as u weld

#

suddenly the character cant move?

nocturne solstice
#

sometimes the engine treats the weld as a static connection and makes the npc act like it’s anchored

#
  • also if either part is accidentally anchored, the weld will propagate that effect
humble pewter
humble pewter
#

of the NPC?

upper jay
nocturne solstice
#

unanchor the npc’s hrp and the player’s hrp before welding

upper jay
#

see if its a physics problem from the npc

nocturne solstice
#

if either is anchored, the weld can make the other act static too

humble pewter
#

i'll try that, if it doesn't work i'll prob set the network ownership to the player

#

ill let yall know if it works

nocturne solstice
#

unanchoring usually fixes it, but if it still feels sticky, giving the player network ownership will make the movement smooth and rid of the problem of robloxes janky ass physics

upper jay
#

lowkey try everything

#

u never know with roblox physics LOL

#

it could either be a mass problem, network ownership problem, anchor problem

#

etc

humble pewter
#

yea

#

mkay yeah it was the anchor problem

#

now the problem is, character moves janky

#

idk how to explain it tbf it moves rlly janky

nocturne solstice
#

welding a moving humanoid feels janky, try motor6d or lerp npc manually and disable collisions with player while stealing

upper jay
humble pewter
#

i did that already

#

wait no nvm nvm 🙏

upper jay
#

if it makes the jank go away, its a mass problem, u can then go customphysicalproperty and set density to the lowest value on all the npcs parts

#

i think it was 0.1?

nocturne solstice
#

yep, set all npc parts density to 0.1 friction 0 elasticity 0, makes them light and smooth without anchoring

humble pewter
#

i have to do allat? 😔
btw just to get this clear, yk the "fly" command in HD admin, like when you turn it kinda turns slowly to where you're looking? that's what the character's doing

nocturne solstice
#

basically yeah

#

every part that contributes to mass

#

if you skip some, physics will still fight itself and make it janky

humble pewter
#

damn 😔 okay

#

gimme a sec

plush ember
#

i wanna learn luau

nocturne solstice
#

lowering density helps, but if the npc has motors or constraints, they’ll still cause the janky stuff

#

either set NetworkOwnership to the player or disable some constraints while moving

humble pewter
#

i'll js set networkownership to the player 🙏

nocturne solstice
#

probably the best and easiest approach

upper jay
#

theres a rigid body in the mix?

#

that i did not know

nocturne solstice
upper jay
#

its like, 99% likely that its just going to be some sort of modification with the rigid body

humble pewter
#

okay no i have to be tripping

plush ember
#

can someone teach me luau

humble pewter
#

js to be clear, this is how to do it right?

for _, v in NPC:GetDescendants() do
  if v:IsA("BasePart") or v:IsA("MeshPart") then
    v:SetNetworkOwnership(plrWhoTriggered)
  end
end
#

like im not tripping

humble pewter
nocturne solstice
#

whatevr

humble pewter
#

whys nothing working 💔

humble pewter
#

it aint working 😭

nocturne solstice
#

whats happening?

humble pewter
#

i have no clue

nocturne solstice
#

collisions between npc parts causing wobble
humanoid trying to auto-correct cframe/velocity
joints or motors fighting each other
too heavy parts even with low density
physics stepping issues if server laggy

^ this is what my hb said

#

those are probably your issues

#

basically anything that adds opposing forces can make it do that

#

is it r6 or r15?

humble pewter
#

r15

nocturne solstice
#

make sure you do it to EVERY body part

#

dm me ur script(s)

#

this server doesnt like .txts

humble pewter
#

yeah

#

check dms

timid anvil
#

how does teleport service when you ask to teleport to a certain position

#

or a part even

nocturne solstice
#

hrp.CFrame = CFrame.new(Vector3.new(x, y, z)) -- teleport to position
hrp.CFrame = part.CFrame + Vector3.new(0, part.Size.Y/2 + hrp.Size.Y/2, 0) -- teleport on top of part

#

make sure the hrp isn’t anchored.

timid anvil
nocturne solstice
#

yuh

timid anvil
#

alrighty

#

is ther eany ways

#

to make it so it's a part

#

instead of a position vector3 thingy

nocturne solstice
#

you can just pass a part instead of a vector3, and use its CFrame for teleporting

#

basically the player moves to the part’s position instead of raw coordinates

#

local targetPart = workspace.PARTNAMEHERE
hrp.CFrame = targetPart.CFrame + Vector3.new(0, targetPart.Size.Y/2 + hrp.Size.Y/2, 0) -- stand on top

timid anvil
#

okej

timid anvil
deft coral
#

teleporting players that is

timid anvil
#

thanks

#

and

#

look I was like editing a script of a teleporter that was teleporting people to another place, how do I make it so they get teleported to the cframe I want here


local TweenService = game:GetService("TweenService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LeaveGuiEvent = ReplicatedStorage:WaitForChild("LeaveGuiEvent")
local TransitionEvent = ReplicatedStorage:WaitForChild("TransitionEvent")
local WaitingPlayers = {}
local playersin = 0
local timer
local teleporting = false
local spawnTeleport = script.Parent.Spawn

local function updateGui()
    if playersin == 1 then
        script.Parent.BillboardPart.BillboardGui.TextLabel.Text = "Waiting for a duo..."
    elseif playersin == 2 then
        script.Parent.BillboardPart.BillboardGui.TextLabel.Text = "Teleporting..."
    elseif playersin == 0 then
        script.Parent.BillboardPart.BillboardGui.TextLabel.Text = ""
    end
end

local function removeFromList(character)
    for i=1, #WaitingPlayers do 
        if WaitingPlayers[i] == character.Name then 
            table.remove(WaitingPlayers, i)
            updateGui()
        end
    end
end

local function teleportPlayers(player)
    if #WaitingPlayers == 2 then 
        script.Parent.BillboardPart.BillboardGui.TextLabel.Text = "Teleporting..."
    end
    local playersToTeleport = {}
    local teleportTime = 0
    for i=1, #WaitingPlayers do 
        if game.Players:FindFirstChild(WaitingPlayers[i]) then
            table.insert(playersToTeleport, game.Players:FindFirstChild(WaitingPlayers[i]))
            TransitionEvent:FireClient(game.Players:FindFirstChild(WaitingPlayers[i]))
        else
            table.remove(WaitingPlayers, i)
        end
        
    end
    local code = 
end```
timid anvil
#

local code was = to sum like

potent igloo
#

then on the landing server you read the teleport data

timid anvil
#

"TeleportService:ReserveServer(placeid)"

potent igloo
#

and reposition the cahracter

timid anvil
#

so I just put what he said above

#

targetPart = workspace.PARTNAMEHERE
hrp.CFrame = targetPart.CFrame + Vector3.new(0, targetPart.Size.Y/2 + hrp.Size.Y/2, 0) -- stand on top

potent igloo
#

uh

#

ig

#

you mean teleporting like just teleporting the character?

timid anvil
#

yea

#

like bringing him

potent igloo
#

ah alright

#

usually the term teleporting refers to sending a player to another server/game

#

cuz teleportservce does that

timid anvil
#

ooo

timid anvil
#

but

#

the thing is this is a server sided script

#

so it won't work on players

#

no?

nocturne solstice
timid anvil
deft coral
#

things are like objects, and they have methods or functions that enable them to do things, or procedures

#

what each object has for its methods/functions are determined by what class they are

#

or "type" in that regard

timid anvil
#

get to the point twin

deft coral
#

letting you learn and understand it entirely on your own

#

but now you can screw off

timid anvil
#

😭

olive elk
timid anvil
static forum
#

I feel burn out I am not seeing results despite putting so much effort and now I’ve hit a wall with Ui in Figma I design Ui looks good high quilty and in Roblox it’s low quilty for pc players only (higher resolution) mobile looks ok am tired am just gonna finsih the game release it then Quit

median tree
olive elk
median tree
#

FireClient means shoot at the client

timid anvil
timid anvil
#

delete the client

olive elk
#

💀

timid anvil
#

in a way it deletes the instance

olive elk
#

it sends a message

#

shoots a message at client with any args u give it

timid anvil
#

so basically ping

olive elk
#

yh

timid anvil
#

wtf is the relation between ping and shoot...

olive elk
#

u have to give it a player arg tho

#

its like

#

shooting a projectile at it

#

but the projectile

#

are the args

timid anvil
#

ooo

olive elk
#

it doesnt really make sense lol

timid anvil
#

so basically if I
remoteevent:FireClient(arg) it sends to the remote event what the client knows about the arg?

karmic wadi
timid anvil
#

snus is life

karmic wadi
#

what mg

timid anvil
#

50

olive elk
#

then on the client script

#

re.OnClientEvent:Connect(function)

timid anvil
#

is toolbox a good way to get sources to copy scripts afterwards?

torn trellis
timid anvil
#

what is a good source then

torn trellis
#

you can use the devforum

#

50-60% of the time what you're looking for has already been solved

digital abyss
#

What should come after learning inheritance and composition

median tree
olive elk
digital abyss
deft coral
#

no just make stuff

#

hard to know how to code if you dont get some problem solving under ur belt, reusable or not

analog basin
#

what

#

would be the best font for coding?

#

in yall opinion?

deft coral
#

fira

analog basin
#

fira?

#

lemme check it out

deft coral
#

yea

#

its not rlly an objective decision though

#

just google the most common and try em out

analog basin
#

fira mono bold, regular

#

?

deft coral
#

any variant

#

fira is just a good font

analog basin
#

isn't that the default 😭

deft coral
#

i guess? i just like fira/fira sans

analog basin
#

how can i upload a font?

#

from like google or smth

deft coral
#

to.. studio?

proper violet
#

silkscreen

olive elk
#

i use consolas

frail plaza
#

im making a powder simulator

#

how do i check surrounding tiles?

#

rn this is how my table is setup

peak jolt
#

replace x with (x-1) for left, (x+1) for right, and so on

#

if grid[...] is nil you know the neighbor doesnt exist

static coral
frail plaza
deft coral
#

like its not even a "itd be nice" ur actually skipping a pretty important concept when learning how to code

frail plaza
#

🙏

#

what is a 2d array

deft coral
#

U need to learn how to use 2d arrays yeah

deft coral
#

its an array that goes in two dimensions

frail plaza
#

im doing this

#

already

deft coral
#

ur not, ur doing a dictionary

#

which is not a 2d array

frail plaza
#

but they look the same

deft coral
#

listen and learn before speaking

#

not even to me just like actually maybe watch the video and research what two people have told you

frail plaza
#

also searching 2d arrays in google has not shown me anything

peak jolt
#

ermm actually 2d table is 0.001ms slower on read than a 1d table

deft coral
#

liar liar pants on fire

deft coral
#

💤

frail plaza
#

i cant find anything

#

nvm

#

google ai to the rescue

deft coral
#

it opens up many many things

#

so gl

peak jolt
#

never used 2d talbe in mylife still alive today

deft coral
#

telling smug

frail plaza
#

i followed like 2 tutorial series

#

and i started learning 9 months ago

#

yet i've never heard of ts

#

😭

#

im cooking myself

deft coral
#

it is just the downfalls of being self-taught, i understand as im self-taught as well

frail plaza
frosty sorrel
#

guys who i can fix this
`local function loadAnimations()
if not character then return end
local humanoid = character:FindFirstChild("Humanoid")
if not humanoid then return end

local serverStorage = game:GetService("ServerStorage")
local rig = serverStorage:FindFirstChild("Rig")
if not rig then 
    warn("Rig not found in ServerStorage!")
    return 
end

local getGunAnim = "rbxassetid://98217059222183"
local shootAnim = "rbxassetid://119881662883413"


if getGunAnim and getGunAnim:IsA("Animation") then
    getGunTrack = humanoid:LoadAnimation(getGunAnim)
    print("Get Gun animation loaded!")
else
    warn("Get Gun animation not found or not an Animation object!")
end

if shootAnim and shootAnim:IsA("Animation") then
    shootTrack = humanoid:LoadAnimation(shootAnim)
    print("Shoot animation loaded!")
else
    warn("Shoot animation not found or not an Animation object!")
end

end`

smoky frost
#

is there

#

a person with PC, internet access and a web browser?

#

and like, 5 spare minutes

fervent belfryBOT
#
Tag » format

Raw text

```lua
print('Hello World')
```

Formatted

print('Hello World')
smoky frost
frosty sorrel
#

whay

smoky frost
#

specifically the dedicated server

frosty sorrel
smoky frost
#

u need 3 braincells, a keyboard and shit i said previoisly

#

3 braincells to type an IP without mistakes

brisk fjord
brisk fjord
#

lmao that and also getGumAnim is an ID and not an animation

frosty sorrel
#

idk

smoky frost
#

what

brisk fjord
#

wym idk

frosty sorrel
smoky frost
#

bro

#

he said why

#

tbf

frosty sorrel
brisk fjord
# frosty sorrel this not working
local getGunAnim = "rbxassetid://98217059222183" --- NOT AN ANIMATION, ITS AN ID
    local shootAnim = "rbxassetid://119881662883413" --- NOT AN ANIMATION EITHER

    

    if getGunAnim and getGunAnim:IsA("Animation") then
        getGunTrack = humanoid:LoadAnimation(getGunAnim)
        print("Get Gun animation loaded!")
    else
        warn("Get Gun animation not found or not an Animation object!")
    end
#

since its an ID

#

your :IsA marks it as false

#

so it doesnt run

#

and it wouldnt run either way

regal salmon
#

such a random check anyway

#

why do you need to check if your animation is an animation lol

#

assuming you did it right

frosty sorrel
regal salmon
#

then use THAT when loading the animation

frosty sorrel
#

ok

brisk fjord
# frosty sorrel ok

man no offense but i feel like you should go do a quick refresh of the basics of the studio before moving forward

deft coral
#

theres nothin to run lmao

brisk fjord
deft coral
#

i know im just aiding your teaching

deft coral
#

it wont mark it as false, it wont even run, IsA isnt a member of a string

#

itll give a full syntax error

brisk fjord
#

ah yea true

frosty sorrel
regal salmon
#

you didnt change anything

deft coral
brisk fjord
deft coral
#

the tldr is that is text, aka a string, its literally just the letters "rbxassetid://98217059222183" in order as far as the computer is concerned

#

as such you need an actual animation object

#

what i suggest is to create one by inserting one with the little + icon under the script and then put the ID in it

#

under its properties

frosty sorrel
# deft coral no

@brisk fjord bro i have script have 1800line How i can Fix animation

#

pls guys

#

help me give me step

deft coral
#

yeah im tapping out

#

i can help non-native speakers but desperate ones are pushing it for me, and not even speaking derogatorily

brisk fjord
#

man i dont wanna be that dude but this feels like rage bait

frosty sorrel
regal salmon
# frosty sorrel help me give me step
    local getGunAnimId = "rbxassetid://98217059222183" --- NOT AN ANIMATION, ITS AN ID
    local shootAnimId = "rbxassetid://119881662883413" --- NOT AN ANIMATION EITHER

    local getGunAnim = Instance.new("Animation", script)
    getGunAnim.AnimationId = getGunAnimId

    local shootAnim = Instance.new("Animation", script)
    shootAnim.AnimationId = shootAnimId
regal salmon
#

why did you get rid of the loading part

brisk fjord
frosty sorrel
brisk fjord
#

yea this defo rage bait

empty jay
regal salmon
# frosty sorrel
local function loadAnimations()
    if not character then return end
    local humanoid = character:FindFirstChild("Humanoid")
    if not humanoid then return end

    local serverStorage = game:GetService("ServerStorage")
    local rig = serverStorage:FindFirstChild("Rig")
    if not rig then 
        warn("Rig not found in ServerStorage!")
        return 
    end

    local getGunAnimId = "rbxassetid://98217059222183" --- NOT AN ANIMATION, ITS AN ID
    local shootAnimId = "rbxassetid://119881662883413" --- NOT AN ANIMATION EITHER

    local getGunAnim = Instance.new("Animation", script)
    getGunAnim.AnimationId = getGunAnimId

    local shootAnim = Instance.new("Animation", script)
    shootAnim.AnimationId = shootAnimId
    

    if getGunAnim and getGunAnim:IsA("Animation") then
        getGunTrack = humanoid:LoadAnimation(getGunAnim)
        print("Get Gun animation loaded!")
    else
        warn("Get Gun animation not found or not an Animation object!")
    end

    if shootAnim and shootAnim:IsA("Animation") then
        shootTrack = humanoid:LoadAnimation(shootAnim)
        print("Shoot animation loaded!")
    else
        warn("Shoot animation not found or not an Animation object!")
    end
end
regal salmon
#

also wait a minute

#

this is in a local script

#

and youre accessing server storage

#

thats not possible

regal salmon
#

or it is ig

empty jay
regal salmon
#

☹️

empty jay
frosty sorrel
#

animation not working guys

frosty sorrel
empty jay
#

1000000*0.000000001 / 10

#
  • 100000000
#

/ 001

regal salmon
#

you dont even use the thing you access serverstorage for 💔

regal salmon
# frosty sorrel <@792398494912610325> <@860838128444637204> <@547102393322700801>
local function loadAnimations()
    if not character then return end
    local humanoid = character:FindFirstChild("Humanoid")
    if not humanoid then return end

    local getGunAnimId = "rbxassetid://98217059222183" --- NOT AN ANIMATION, ITS AN ID
    local shootAnimId = "rbxassetid://119881662883413" --- NOT AN ANIMATION EITHER

    local getGunAnim = Instance.new("Animation", script)
    getGunAnim.AnimationId = getGunAnimId

    local shootAnim = Instance.new("Animation", script)
    shootAnim.AnimationId = shootAnimId

    if getGunAnim and getGunAnim:IsA("Animation") then
        getGunTrack = humanoid:LoadAnimation(getGunAnim)
        print("Get Gun animation loaded!")
    else
        warn("Get Gun animation not found or not an Animation object!")
    end

    if shootAnim and shootAnim:IsA("Animation") then
        shootTrack = humanoid:LoadAnimation(shootAnim)
        print("Shoot animation loaded!")
    else
        warn("Shoot animation not found or not an Animation object!")
    end
end
empty jay
#

🤯

#

guys

#

is it fine if i put a local script + server script + a remote event inside a tool

frosty sorrel
#

23:09:13.488 Get Gun animation loaded! - Client - 2/2:218 23:09:13.489 Shoot animation loaded! - Client - 2/2:225 23:09:13.930 Failed to load animation with sanitized ID rbxassetid://119881662883413: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=119881662883413&serverplaceid=0 - Studio 23:09:13.930 Failed to load animation with sanitized ID rbxassetid://98217059222183: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=98217059222183&serverplaceid=0 - Studio 23:09:13.935 The experience doesn't have access permission to use asset id 119881662883413. Click to share access - Studio 23:09:13.936 The experience doesn't have access permission to use asset id 98217059222183. Click to share access - Studio 23:09:18.439 Infinite yield possible on 'Players.AY_PRO28.PlayerGui:WaitForChild("Shop")' - Studio 23:09:18.441 Stack Begin - Studio 23:09:18.442 Script 'Players.AY_PRO28.PlayerGui.AxeComm2.BottomButton.HUDBg.Styles.styles', Line 5 - Studio - styles:5 23:09:18.442 Stack End - Studio 23:09:48.875 Failed to load animation with sanitized ID rbxassetid://98217059222183: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=98217059222183&serverplaceid=0 - Studio 23:09:48.878 The experience doesn't have access permission to use asset id 98217059222183. Click to share access - Studio 23:09:50.442 Failed to load animation with sanitized ID rbxassetid://119881662883413: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=119881662883413&serverplaceid=0 - Studio 23:09:50.445 The experience doesn't have access permission to use asset id 119881662883413. Click to share access - Studio

#

whaaaaaaaat idh access for animation

#

Guys Thanks is work now

#

@regal salmon @brisk fjord Thanks

regal salmon
#

👍

frosty sorrel
regal salmon
empty jay
#

ok

worn ledge
#

Hi guys, I have a question for you all. When importing UI's from Figma, how do I make sure the sizes scale proportionally in studio?

slate igloo
bronze path
#

i could explain but tbh it's all documented and widely talked about on the devforum as well ^^ for a heads up

worn ledge
#

can I private DM you?

slate igloo
worn ledge
#

ok ty

mortal pecan
#

Yo

#

I have some questions

digital abyss
#

What this means ? 01:58:29.544 Script Context.CoreScripts/CharacterNameHandler:105: attempt to index nil with 'names' - Studio

digital abyss
#

it appears when a new player joins the server

brazen sphinx
#

roblox end error u cant do anything

#

jus ignore it

digital abyss
flat viper
#

anyone free to help me test something?

flat viper
#
Roblox

A STREET SOCCER GAME

[GAME IS BRAND NEW EXPECT BUGS]

Fast 4v4 matches where every touch matters smooth dribbles, clean shots, satisfying tackles, and clutch saves.

PC CONTROLS:

Shift = Sprint
Ctrl = Shift Lock
Hold Left Click = Shoot / Pass (aim with mouse)
Q = Dribble / Skill
E = Tackle / Slide
Hold F = Power Shot (charge)
Space = Jump / H...

#

let me know when you join

little wind
#

Is there a rly good inventory module?

pastel pine
#

Satchel

#

Lets mobile users hold 6 inv items in main hitbar as opposed to the roblox enforced 3 limit

#

Adds a softer look to invent

#

Inventory*