generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Roblox » Help (Technical Support and Account Issues)
Home Search
 

Re: HELP I NEED HELP WITH SCRIPTING...

Previous Thread :: Next Thread 
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
15 Feb 2015 12:13 AM
Ok, I have been looking around for a while but i couldnt seem to find a script that allows me to spawn with different clothing on...
Dont get it? this is what i mean... Medieval Warfare: Reforged has a script where you spawn with armor on...
HOW DO I DO THAT?
Report Abuse
DeathStalkrr is not online. DeathStalkrr
Joined: 26 Jul 2014
Total Posts: 595
15 Feb 2015 01:09 AM
It's better if you learn the basic of scripting.

I, Don't know nor not interested in scripting, But ROBLOX made a Video how to script
Report Abuse
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
26 Dec 2015 06:25 PM
your probably not reading dis now, but I'm really good at scripting now. :D
My guess is that Exhoda used a :WaitForChild() then used a transfer script e.g. :Clone(), placed it into the character.

local plr = game.Players.LocalPlayer
local char = plr.Character
local human = char:FindFirstChild("Humanoid")

if human then
local copy = script:GetChildren()
local forcein = copy:Clone().Parent = char
end

Report Abuse
parkerisParker1man is not online. parkerisParker1man
Joined: 24 Oct 2011
Total Posts: 617
26 Dec 2015 06:28 PM
IF I stand correct, I believe you have to put stuff in the 'lighting' section, then have a lighting function in your script.
Report Abuse
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
26 Dec 2015 07:39 PM
oh yeah, forgot to add that. Or replicated storage. doesn't matter
Report Abuse
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
26 Dec 2015 07:40 PM
wait no, you can put it in workspace aswell. the items are the children of the script.
Report Abuse
Railmints is not online. Railmints
Joined: 11 Aug 2014
Total Posts: 272
14 Jan 2016 12:26 PM
im kinda stuck with scripting and im starting out too c;. do you think you could help me out?
Report Abuse
Railmints is not online. Railmints
Joined: 11 Aug 2014
Total Posts: 272
14 Jan 2016 07:41 PM
local function onClick(mouse)
script.Parent.mouseButton1Click:connect(onClick)
open = false
Menu = script.Parent.Menu
Dropdown = script.Parent.Dropdown

local function Onclick()
if open == false then
Menu.Text = "Close"
Dropdown.Visible = true
open = true
end
end
end
Report Abuse
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
19 Jan 2016 10:58 PM
local function onClick(mouse)
script.Parent.mouseButton1Click:connect(onClick)
open = false
Menu = script.Parent.Menu
Dropdown = script.Parent.Dropdown

local function Onclick()
if open == false then
Menu.Text = "Close"
Dropdown.Visible = true
open = true
end
end
end

Problems:
1) Functions shouldn't be local
2) Missing ")" on end.
3) You didn't define what your clicking.
4) You didn't call the event.

--Place a script inside what your clicking and insert this.

script.Parent.MouseButton1Click:connect(function()
local toggle = false
local Menu = script.Parent.Parent.Menu
local Dropdown = script.Parent.Parent.Dropdown

if toggle == false then -- This will turn it on
toggle = true
Menu.Text = 'Close'
Dropdown.Visible = true

elseif toggle == true then -- This will turn it off
toggle = false
Menu.Text = 'Open'
Dropdown.Visible = false
end

end)

Anyways, make sure that dropdown is not visible when doing this script. ok?
Report Abuse
Railmints is not online. Railmints
Joined: 11 Aug 2014
Total Posts: 272
25 Jan 2016 09:16 PM
thanks a ton dude but i figured it out a while ago, sorry for not responding, but i do have another script that needs some reviewing if you would like. im trying to reference a players character through a script within my gui but the value turns up nil on the second line. heres the script

local char = workspace:FindFirstChild(script.Parent.Parent.Parent.Name)

hum = char.Humanoid

the script is located within a screengui inside startergui
Report Abuse
KelvinZhafranEgi2 is online. KelvinZhafranEgi2
Joined: 01 Jul 2012
Total Posts: 407
25 Jan 2016 11:36 PM
@RaulChaser

Wrong sub-forum

I hope some mods can move this thread...
Report Abuse
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
26 Jan 2016 09:24 PM
Sorry I'm late
if its in StarterGui then do this.:

local chr = script.Parent.Parent.Parent.Parent.Character --Add more parents depending on how many times it takes to pass starterGui. e.g. If you have this script inside a frame inside a screenGui, inside StarterGui. it would be (3)parent.

local human = chr:FindFirstChild("Humanoid")

if human then
--Do this

end





Report Abuse
RaulChaser is not online. RaulChaser
Joined: 07 Dec 2014
Total Posts: 655
26 Jan 2016 09:25 PM
@Railmints

Sorry I'm late
if its in StarterGui then do this.:

local chr = script.Parent.Parent.Parent.Parent.Character --Add more parents depending on how many times it takes to pass starterGui. e.g. If you have this script inside a frame inside a screenGui, inside StarterGui. it would be (3)parent.

local human = chr:FindFirstChild("Humanoid")

if human then
--Do this

end
Report Abuse
Railmints is not online. Railmints
Joined: 11 Aug 2014
Total Posts: 272
27 Jan 2016 08:44 AM
Thanks dude ^_^
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Help (Technical Support and Account Issues)
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image