Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to I give a attach something to player when they join?

Asked by 6 years ago

I have a working watch that can do many things but, I don't know how to attach it to a players wrist when they join. Can someone provide a link or explain to me how I would be able to do this?

I was guessing that I keep the watch in ReplicatedStorage. Then when the players joins, I would have a script clone the watch into a players wrist. I don't know how to position the watch and weld it to the person.

0
ALL OF MY QUESTIONS WERE ABOUT SCRIPTS AND HE ASKED SOMETHING UNSCRIPTING RELATED! WHY DO YOU GUYS ANSWER FOR HIM AND CLOSE MINE. HOW DARE YOU? HOW WOULD YOU LIKE IT IF I CLOSE YOUR GUYS HUH? HE'S PROBABLY A TWELVE YEAR OLD! A KID! YOU GUYS ANSWER TO HER? Goldenkings11 -11 — 6y
0
Hey hey hey u are not the only one :( look at my reputation, they always close mine too even though my questions are related. I joined like three days ago and my reputation is almost like urs :(. LeaderAssassinNinja 69 — 6y
0
Guys, Calm down. First i'm not twelve, second If you can be clearer in your question, people would help, third, why are you ranting against my question just because you didn't get your's answered? TheLightningRises 56 — 6y
0
srry arctic I got outta hand, anyways did the two answers given help? LeaderAssassinNinja 69 — 6y
0
Well, not really, I'm still learning scripting and this stuff seems pretty advanced to me. I am grateful someone took time and effort to help me out, but this seems complicated. I haven't learned welding yet and it seems hard for me right now. As for the other stuff, I don't know if char and plr are specific parameters or random parameter names. I also haven't learned much about services yet. TheLightningRises 56 — 6y

2 answers

Log in to vote
0
Answered by
linx45 -1
6 years ago

So I'm Assuming that you want to Weld the Watch To The Player.

So First Off Make Sure to have the Watch in Replicated Storage oh and it can not be a union/mesh (I'm not sure how to weld those to the player yet) make sure its a group with normal bricks and have one part called Main so that you can recall to it later. but before we get into welding, make sure to have a dummy player arm so you can position the watch exactly how you want it to be. Once you are done with that put the watch back in Replicated Storage and insert a script to Server Script Service, Also Make sure to name your Model Something short for the script! Now its Scripting Time

This part is getting the Model or Model's From Replicated Storage

local rp = game.ReplicatedStorage
local LeftArm = rp:WaitForChild('LeftArm') --//This is just an Example Name for a Model
local LeftLeg = rp:WaitForChild('LeftLeg') --//This is just an Example Name for a Model
local RightArm = rp:WaitForChild('RightArm') --//This is just an Example Name for a Model
local RightLeg = rp:WaitForChild('RightLeg') --//This is just an Example Name for a Model
local Torso2 = rp:WaitForChild('Torso2') --//This is just an Example Name for a Model

Now Lets Hide The Body Part's When a Player Join's The Game! First Start with a 'Player Connected Function'

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)

Then Add a 'char:WaitForChildAdded

        char:WaitForChild('Torso')
        char:WaitForChild('Left Leg')
        char:WaitForChild('Left Arm')
        char:WaitForChild('Right Leg')
        char:WaitForChild('Right Arm')

Now Let's Weld The Parts Together with the Watch

        --// Left Arm
        local ClonedLA = LeftArm:Clone()
        ClonedLA.Parent = char

        ClonedLA.Main.CFrame = char:WaitForChild('Left Arm').CFrame

        local Weld = Instance.new('ManualWeld')
        Weld.Part0 = ClonedLA.Main      
        Weld.Part1 = char:WaitForChild('Left Arm')
        Weld.C0 = ClonedLA.Main.CFrame:inverse() * char:WaitForChild('Left Arm').CFrame
        Weld.Parent = char:WaitForChild('Left Arm')

    end)
end)

To Be honest i kinda feel like i did the entire script for you XD but i don't mind i love helping people out!

0
how often are u online, cuz I could really use ur help! LeaderAssassinNinja 69 — 6y
0
well im always online XD linx45 -1 — 6y
0
Do you really need to create a ManualWeld? Can't you just make a Weld? I'm new to making welds with scripts :P DatOneRandomDude 69 — 6y
0
Same here XD But what the Roblox Wiki said is that When you have a Group of with parts in that are welded to together you have to make a 'ManualWeld' For the group. linx45 -1 — 6y
Ad
Log in to vote
0
Answered by 6 years ago

Best thing to do is to make the watch an accessory or a gear that the character can use if it had a script. Otherwise, u could weld the watch model onto your character by clicking run, and then welding the watch onto your spawned character by clicking the model in the replicated storage and moving it onto the part called TheArcticTerminal. This is the best I can do, otherwise look up the answer on youtube, or maybe in group script assistance. If this answer helped you solve your question, please click accept below this answer to eliminate space upon other questions. Good luck with your watch!!

Answer this question