#Scripting GUI help

1349 messages · Page 2 of 2 (latest)

narrow burrow
#

thats why

minor glade
#

its wrong?

narrow burrow
#

100%

minor glade
#

how?

narrow burrow
#

under the function

minor glade
#

huh

#

@narrow burrow help

narrow burrow
#

hum[

minor glade
#

help

narrow burrow
#

say

minor glade
#

?

narrow burrow
#

say your problem

minor glade
#

your problem

#

nah wait

#

im joking

#

ok so

#

I want whenever someone clicks interact, it makes walkspeed = 0

#

i already know humanoid.walkspeed=0

narrow burrow
#

ok

#

its not working?

minor glade
#

no humanoid.walkspeed=0

#

works

#

but i want to know the

#

when someone interacts, it makes walkspeed=0

#

@narrow burrow

narrow burrow
#

what

#

i didn't understand the problem

minor glade
#

so if someone uses proximity prompt

arctic ibexBOT
#

studio** You are now Level 8! **studio

minor glade
#

which means clicking e

#

then it sets the walkspeed to 0

#

like this

narrow burrow
#

ok

#

then

#

the problem are

#

the player when spawn can't walk?

minor glade
#

no

#

@narrow burrow

narrow burrow
#

hm

narrow burrow
#

when interact

#

which is the problem?

minor glade
#

how do I put that

#

how do I put

#

when someone interacts

#

it sets walkspeed to

#

0

#

whats the code for that

narrow burrow
#

i already answered

minor glade
#

yeah well im asking HOW

narrow burrow
#

under the function

minor glade
#

whats that

narrow burrow
minor glade
#

OHH

#

ok

narrow burrow
minor glade
#

ok

narrow burrow
#

50 times

minor glade
#

add this under the function?

#

oops

#

wrong thing

narrow burrow
minor glade
#

add humanoid.walkspeed=0

#

?

#

under function?

narrow burrow
#

space

#

walkspeed = 0

minor glade
#

ye

#

alr

narrow burrow
#

no walkspeed=0

minor glade
#

alr

#

doesnt work

#

@narrow burrow

#

The code itself works

#

but

#

when I try it in game

#

it doesnt work

narrow burrow
#

again

minor glade
#

ok

#

tried it, didnt work

#

@narrow burrow

narrow burrow
#

where did you get it?

#

devforum?

#

just compare the scripts

#

its not hard

minor glade
narrow burrow
#

try

#

WalkSpeed

#

with capitals

minor glade
narrow burrow
#

why are you doing this with me???????

minor glade
#

doesnt work

narrow burrow
minor glade
#

😂

minor glade
#

I CANT MOVE

#

WWWW

narrow burrow
#

ok next step

minor glade
#

ok bet

minor glade
#

how to disable jump

#

i will search it

#

hmm

#

humanoid.Jump=False?

#

@narrow burrow I DID IT BRO

minor glade
#

@narrow burrow

#

LOOK

minor glade
minor glade
#

@frail pebble

#

@narrow burrow yo I completed backspace

#

player can't jump, move, and drop his tool.

minor glade
#

@narrow burrow I got my mopping animation, rbxassetid://16283868326

narrow burrow
#

nice

minor glade
#

yeah I did it myself

#

u proud of me black_pleading @narrow burrow

minor glade
#

OTAVIO

minor glade
#

@narrow burrow how do I put an animation into the script?

#

??

narrow burrow
#

create a animation

#

in the Part

#

and put the ID

#

in the properties

narrow burrow
minor glade
minor glade
#

how

#

bro

narrow burrow
minor glade
#

I did

#

i have an animation

#

16283868326

#

@narrow burrow

#

y does it take u 5 years to reply

#

@narrow burrow

#

OTAVIO

#

@narrow burrow done

#

I put it in proximityprompt

#

not part

#

should I do part?

narrow burrow
#

and i have a project

minor glade
#

mb

#

but

#

did I do it right

narrow burrow
#

yes

minor glade
#

now what?

narrow burrow
#

now you just have to find the Animation in the script

minor glade
#

how

narrow burrow
#

devforum have a lot of posts about

#
  • explanations
minor glade
#

What do I search?

#

what do I search??

narrow burrow
#

think

#

what you have to do?

minor glade
#

uhhh

#

how to identify an animation inside a script?

#

Don't I say

#

AnimationId = 16283868326

narrow burrow
#

how to play an animation

minor glade
#

oh

narrow burrow
#

just this

minor glade
#

how to play an animation in script?

narrow burrow
minor glade
#

and put it under function right?

narrow burrow
minor glade
#
local animationId = 16283868326
    local animation = humanoid:LoadAnimation(16283868326)
    animation:Play()```
#

@narrow burrow

narrow burrow
#

test

#

wait

#

why you added the id again?

#

why are you not getting the animation from the workspace?

minor glade
#

?

narrow burrow
#

you created a variable for the animation ID

minor glade
#

yes

narrow burrow
#

but you put the animation ID again

minor glade
#

oh do I

#

take it out

narrow burrow
#

and

#

get the animation from the workspace

minor glade
minor glade
narrow burrow
minor glade
#

?

#

@narrow burrow

narrow burrow
#

are you sure?

#

Animation is a ID?

minor glade
#

uhh yeah thats how to identify

#

an animation

narrow burrow
#

You are just identifying the ANIMATION

#

not the ANIMATION ID

minor glade
#

oh

#

mb

narrow burrow
#

like

#

if you do this

#

workspace.part

#

you just getting the part

minor glade
#

ye

narrow burrow
#

if you want to change the color

#

you can't

#

why?

#

because you just getting the PART

#

not the PART -> Color

minor glade
#

ohhhhhhhhh

narrow burrow
#

workspace.Part.Color

minor glade
#

ok so

narrow burrow
#

look at the animations properties

#

if you want to get the ID

minor glade
narrow burrow
#

just get the animation propertie about ID

minor glade
minor glade
#

I put it in

#

look

narrow burrow
#

.AnimationId

#

easy

minor glade
#

alr

#

The script broke

#

now when I click e

#

I still move

#

and jump

#

I think bc i put a function inside of a function?

#

is animationId:Play() correct?

narrow burrow
#

bro

#

are you kidding me

minor glade
#

?? 😭

narrow burrow
#

you literally are trying to get the AnimationID from WORKSPACE

#

workspace its not a Animation

#

workspace.Part.Animation.AnimationId

minor glade
minor glade
narrow burrow
#

proximityprompt is an animation?

minor glade
#

LOL

#

i tried to get it FROm proximityPrompt

#

stop hating 😭 android_sob

narrow burrow
#

if you want to get things near of the script

#

use script.

minor glade
#

bro

#

doesn't work

#

I think I need to capitalize the workspace?

narrow burrow
#

example

#

script.Parent.Animation

#

Parent will be the ProximityPrompt

minor glade
#

ye

#

ik

#

thats why i said

#

proximityprompt

narrow burrow
#

no

#

you don't know

narrow burrow
#

you tried to get the ANIMATIONID

#

from the Prompt

minor glade
#

ye

narrow burrow
#

BUT

minor glade
#

ye

narrow burrow
#

THE ANIMATIONID

minor glade
#

im listening

narrow burrow
#

IS A PROPERTIE

#

OF ANIMATION

minor glade
#

ohhhhhhhhhhhhhh

#

ok so we get the animation

#

not animation id

narrow burrow
#

blud still don't understand

minor glade
#

IDK 4cat_cry

narrow burrow
minor glade
#

bare with me 15Sob

narrow burrow
#

explain it for me

minor glade
#

That is the properties

#

of the animation

narrow burrow
#

ok

#

then

#

how you get the animation ID

#

from the "Animation"

minor glade
#

uh

#

local animationId = workspace.Part.Animation.AnimationId

narrow burrow
#

yes

#

but

#

the Animation its not inside the prompt?

#

where is the prompt

minor glade
#

what prompt

#

?

narrow burrow
#

ProximityPrompt

minor glade
#

local animationId = workspace.Part.ProximityPrompt.Animation.AnimationId

#

?

narrow burrow
#

yes!!!

minor glade
#

alr

narrow burrow
#

just check their names

minor glade
#

alr

#

do I capitalize workspace?

narrow burrow
#

no

minor glade
#

alr

#

ok I tested script

#

and

#

it doesnt work

narrow burrow
#

send a print

minor glade
#

print

#

ok

#
local player = game.Players.LocalPlayer
local water = workspace.Part
local tool = script.Parent
water.ProximityPrompt.Triggered:Connect(function(player)
    local animationId = workspace.Part.ProximityPrompt.Animation.AnimationId
    local character = player.Character
    local humanoid = character:WaitForChild("Humanoid")
    local tool = player.Backpack.Mop
    animationId:Play()
    humanoid.WalkSpeed = 0
    humanoid.JumpPower = 0
    tool.CanBeDropped = false

end)```
narrow burrow
#

you just get the ID

#

and you're trying to play the ID

minor glade
narrow burrow
#

3193813813

#

this is an animation?

minor glade
#

whats that 15Sob

#

no

narrow burrow
#

ITS A NUMBER

minor glade
#

thats not the animation I made

narrow burrow
#

you can't play a NUMBER

#

then you need to get the Animation

#

using the ID

minor glade
#

16283868326

#

this is my

narrow burrow
#

it was an example

#

you have to

#

LOAD

#

the animation

#
local animationLoaded = humanoid:LoadAnimation(AnimationId)
#

here you make a variable called animationLoaded

#

get humanoid

#

and use the gameservice LoadANimation (idk the name of this)

minor glade
#

@narrow burrow dms

minor glade
#

@narrow burrow

narrow burrow
#

gg

minor glade
#

LETS GO

minor glade
#

and I need to weld the mop to the animation