|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 26 Dec 2015 07:39 PM |
| oh yeah, forgot to add that. Or replicated storage. doesn't matter |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Jan 2016 11:36 PM |
@RaulChaser
Wrong sub-forum
I hope some mods can move this thread... |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 11 Aug 2014 |
| Total Posts: 272 |
|
| |
|